summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-12-13 00:39:32 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-13 00:56:52 +0100
commitf34297cfbade4f127f52d80ecbb119e1029378f3 (patch)
treea9df644f8fc31b15cc3b12021343ca5ba9a50c8a /gdk/x11/gdkdisplay-x11.c
parent8a453924a07649cdbebfd841e00044381ecc0764 (diff)
downloadgtk+-f34297cfbade4f127f52d80ecbb119e1029378f3.tar.gz
x11: Constify XEvent usage
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c8
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;