diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-13 00:39:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-13 00:56:52 +0100 |
commit | f34297cfbade4f127f52d80ecbb119e1029378f3 (patch) | |
tree | a9df644f8fc31b15cc3b12021343ca5ba9a50c8a /gdk/x11/gdkdisplay-x11.c | |
parent | 8a453924a07649cdbebfd841e00044381ecc0764 (diff) | |
download | gtk+-f34297cfbade4f127f52d80ecbb119e1029378f3.tar.gz |
x11: Constify XEvent usage
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r-- | gdk/x11/gdkdisplay-x11.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 579510a523..a474443a49 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -102,7 +102,7 @@ static void gdk_x11_display_event_translator_init (GdkEventTranslatorIface * static gboolean gdk_x11_display_translate_event (GdkEventTranslator *translator, GdkDisplay *display, GdkEvent *event, - XEvent *xevent); + const XEvent *xevent); static void gdk_internal_connection_watch (Display *display, XPointer arg, @@ -575,7 +575,7 @@ get_cm_atom (GdkDisplay *display) } static Window -get_event_xwindow (XEvent *xevent) +get_event_xwindow (const XEvent *xevent) { Window xwindow; @@ -613,7 +613,7 @@ static gboolean gdk_x11_display_translate_event (GdkEventTranslator *translator, GdkDisplay *display, GdkEvent *event, - XEvent *xevent) + const XEvent *xevent) { Window xwindow; GdkWindow *window; @@ -1124,7 +1124,7 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator, /* Let XLib know that there is a new keyboard mapping. */ - XRefreshKeyboardMapping (&xevent->xmapping); + XRefreshKeyboardMapping ((XMappingEvent *) xevent); _gdk_x11_keymap_keys_changed (display); return_val = FALSE; break; |