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/gdkdevicemanager-xi2.c | |
parent | 8a453924a07649cdbebfd841e00044381ecc0764 (diff) | |
download | gtk+-f34297cfbade4f127f52d80ecbb119e1029378f3.tar.gz |
x11: Constify XEvent usage
Diffstat (limited to 'gdk/x11/gdkdevicemanager-xi2.c')
-rw-r--r-- | gdk/x11/gdkdevicemanager-xi2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index a7ec3a9cea..07c2113993 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -79,13 +79,13 @@ static GdkDevice * gdk_x11_device_manager_xi2_get_client_pointer (GdkX11DeviceMa static gboolean gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator, GdkDisplay *display, GdkEvent *event, - XEvent *xevent); + const XEvent *xevent); static GdkEventMask gdk_x11_device_manager_xi2_get_handled_events (GdkEventTranslator *translator); static void gdk_x11_device_manager_xi2_select_window_events (GdkEventTranslator *translator, Window window, GdkEventMask event_mask); static GdkWindow * gdk_x11_device_manager_xi2_get_window (GdkEventTranslator *translator, - XEvent *xevent); + const XEvent *xevent); enum { PROP_0, @@ -1225,7 +1225,7 @@ static gboolean gdk_x11_device_manager_xi2_translate_core_event (GdkEventTranslator *translator, GdkDisplay *display, GdkEvent *event, - XEvent *xevent) + const XEvent *xevent) { GdkEventTranslatorIface *parent_iface; gboolean keyboard = FALSE; @@ -1341,10 +1341,10 @@ static gboolean gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator, GdkDisplay *display, GdkEvent *event, - XEvent *xevent) + const XEvent *xevent) { GdkX11DeviceManagerXI2 *device_manager; - XGenericEventCookie *cookie; + const XGenericEventCookie *cookie; GdkDevice *device, *source_device; gboolean return_val = TRUE; GdkWindow *window; @@ -1943,7 +1943,7 @@ gdk_x11_device_manager_xi2_select_window_events (GdkEventTranslator *translator, static GdkWindow * gdk_x11_device_manager_xi2_get_window (GdkEventTranslator *translator, - XEvent *xevent) + const XEvent *xevent) { GdkX11DeviceManagerXI2 *device_manager; XIEvent *ev; |