Author: olivier
Date: 2007-11-06 22:53:58 +0000 (Tue, 06 Nov 2007)
New Revision: 26263

Modified:
   xfwm4/trunk/src/events.c
Log:
Revert to current time for releasing queued input events (simpler, safer)

Modified: xfwm4/trunk/src/events.c
===================================================================
--- xfwm4/trunk/src/events.c    2007-11-06 22:52:31 UTC (rev 26262)
+++ xfwm4/trunk/src/events.c    2007-11-06 22:53:58 UTC (rev 26263)
@@ -342,8 +342,8 @@
 
     TRACE ("entering handleKeyEvent");
 
-    /* Release queued events at the time of the event */
-    XAllowEvents (display_info->dpy, AsyncKeyboard, ev->time);
+    /* Release queued events */
+    XAllowEvents (display_info->dpy, AsyncKeyboard, CurrentTime);
 
     status = EVENT_FILTER_PASS;
     ev_screen_info = myDisplayGetScreenFromRoot (display_info, ev->root);
@@ -1002,7 +1002,7 @@
                     clientRaise (c, None);
                 }
             }
-            XAllowEvents (display_info->dpy, ReplayPointer, ev->time);
+            XAllowEvents (display_info->dpy, ReplayPointer, CurrentTime);
         }
 
         return EVENT_FILTER_REMOVE;

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to