Author: olivier
Date: 2007-07-17 18:10:20 +0000 (Tue, 17 Jul 2007)
New Revision: 25923
Modified:
xfwm4/trunk/src/events.c
Log:
Use event's timestamp when releasing queued events
Modified: xfwm4/trunk/src/events.c
===================================================================
--- xfwm4/trunk/src/events.c 2007-07-17 06:29:36 UTC (rev 25922)
+++ xfwm4/trunk/src/events.c 2007-07-17 18:10:20 UTC (rev 25923)
@@ -342,13 +342,15 @@
TRACE ("entering handleKeyEvent");
+ /* Release queued events at the time of the event */
+ XAllowEvents (display_info->dpy, AsyncKeyboard, ev->time);
+
status = EVENT_FILTER_PASS;
ev_screen_info = myDisplayGetScreenFromRoot (display_info, ev->root);
if (!ev_screen_info)
{
return status;
}
- XAllowEvents (display_info->dpy, AsyncKeyboard, CurrentTime);
c = clientGetFocus ();
if (c)
@@ -860,20 +862,12 @@
Client *c;
Window win;
int state, part;
- gboolean replay;
TRACE ("entering handleButtonPress");
-#if CHECK_BUTTON_TIME
- /* Avoid treating the same event twice */
- if (!check_button_time (ev))
- {
- TRACE ("ignoring ButtonPress event because it has been already
handled");
- return EVENT_FILTER_REMOVE;
- }
-#endif
+ /* Release queued events at the time of the event */
+ XAllowEvents (display_info->dpy, ReplayPointer, ev->time);
- replay = FALSE;
c = myDisplayGetClientFromWindow (display_info, ev->window, SEARCH_FRAME |
SEARCH_WINDOW);
if (c)
{
@@ -1011,18 +1005,8 @@
clientRaise (c, None);
}
}
- replay = TRUE;
}
- if (replay)
- {
- XAllowEvents (display_info->dpy, ReplayPointer, CurrentTime);
- }
- else
- {
- XAllowEvents (display_info->dpy, SyncPointer, CurrentTime);
- }
-
return EVENT_FILTER_REMOVE;
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits