Author: olivier
Date: 2007-07-16 21:25:51 +0000 (Mon, 16 Jul 2007)
New Revision: 25921
Modified:
xfwm4/trunk/src/events.c
Log:
Release key events early
Modified: xfwm4/trunk/src/events.c
===================================================================
--- xfwm4/trunk/src/events.c 2007-07-16 21:25:15 UTC (rev 25920)
+++ xfwm4/trunk/src/events.c 2007-07-16 21:25:51 UTC (rev 25921)
@@ -348,6 +348,7 @@
{
return status;
}
+ XAllowEvents (display_info->dpy, AsyncKeyboard, CurrentTime);
c = clientGetFocus ();
if (c)
@@ -453,17 +454,9 @@
}
break;
case KEY_POPUP_MENU:
- /*
- We need to release the events here prior to grabbing
- the keyboard in gtk menu otherwise we end with a dead
lock...
- */
- XAllowEvents (display_info->dpy, AsyncKeyboard, CurrentTime);
show_window_menu (c, frameX (c) + frameLeft (c),
frameY (c) + frameTop (c),
Button1, GDK_CURRENT_TIME);
-
- /* 'nuff for now */
- return EVENT_FILTER_REMOVE;
break;
case KEY_FILL_WINDOW:
clientFill (c, CLIENT_FILL);
@@ -561,7 +554,6 @@
default:
break;
}
- XAllowEvents (display_info->dpy, AsyncKeyboard, CurrentTime);
return status;
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits