[gtk+] Propagate the "send_event" flag for emulated events



commit 2400e1440e391ed8400c674095f92cff6c445457
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Aug 26 10:34:15 2009 +0200

    Propagate the "send_event" flag for emulated events
    
    This fixes bug 593011, where we were getting a bogus time on sent events
    and the gnome-panel specifically looked for this and worked around it.

 gdk/gdkwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 195ba3e..8e4bcc4 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8717,6 +8717,8 @@ _gdk_make_event (GdkWindow    *window,
 
   event->any.window = g_object_ref (window);
   event->any.send_event = FALSE;
+  if (event_in_queue && event_in_queue->any.send_event)
+    event->any.send_event = TRUE;
 
   switch (type)
     {



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