[gtk+/wip/carlosg/private-event-structs] xim: Convert to GdkEvent API



commit 7672863c26d5dee4cd2e58bc77eda7fc07664e74
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 25 22:55:38 2017 -0400

    xim: Convert to GdkEvent API

 modules/input/gtkimcontextxim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c
index c8f20f7..3095fcf 100644
--- a/modules/input/gtkimcontextxim.c
+++ b/modules/input/gtkimcontextxim.c
@@ -677,7 +677,7 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
 
   xevent.type = (event_type == GDK_KEY_PRESS) ? KeyPress : KeyRelease;
   xevent.serial = 0;           /* hope it doesn't matter */
-  xevent.send_event = event->send_event;
+  xevent.send_event = gdk_event_is_sent ((GdkEvent *)event);
   xevent.display = GDK_WINDOW_XDISPLAY (window);
   xevent.window = GDK_WINDOW_XID (window);
   xevent.root = DefaultRootWindow(GDK_WINDOW_XDISPLAY (window));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]