Author: olivier
Date: 2008-03-18 20:57:45 +0000 (Tue, 18 Mar 2008)
New Revision: 26687
Modified:
xfwm4/trunk/src/events.c
Log:
Rework keyboard grabs
Modified: xfwm4/trunk/src/events.c
===================================================================
--- xfwm4/trunk/src/events.c 2008-03-18 18:42:58 UTC (rev 26686)
+++ xfwm4/trunk/src/events.c 2008-03-18 20:57:45 UTC (rev 26687)
@@ -342,13 +342,13 @@
TRACE ("entering handleKeyEvent");
- /* Release queued events */
- XAllowEvents (display_info->dpy, AsyncKeyboard, ev->time);
-
status = EVENT_FILTER_PASS;
ev_screen_info = myDisplayGetScreenFromRoot (display_info, ev->root);
if (!ev_screen_info)
{
+ /* Release queued events */
+ XAllowEvents (display_info->dpy, AsyncKeyboard, ev->time);
+
return status;
}
@@ -557,6 +557,9 @@
break;
}
+ /* Release queued events */
+ XAllowEvents (display_info->dpy, AsyncKeyboard, myDisplayGetCurrentTime
(display_info));
+
return status;
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits