[Xfce4-commits] <xfwm4:xfce-4.8> Restore the release keyboard events.

Olivier Fourdan noreply at xfce.org
Mon Jan 24 10:48:01 CET 2011


Updating branch refs/heads/xfce-4.8
         to d61d83cfb203a83fb5aaa9e5537b15d0921c155f (commit)
       from 48af274a760eb24e80c36330a0bf88e651b21a6e (commit)

commit d61d83cfb203a83fb5aaa9e5537b15d0921c155f
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Thu Jan 20 11:07:51 2011 +0100

    Restore the release keyboard events.

 src/events.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/events.c b/src/events.c
index 7a8d5f4..eb92c58 100644
--- a/src/events.c
+++ b/src/events.c
@@ -301,6 +301,8 @@ handleKeyPress (DisplayInfo *display_info, XKeyEvent * ev)
 
     TRACE ("entering handleKeyEvent");
 
+    XAllowEvents (display_info->dpy, AsyncKeyboard, ev->time);
+
     ev_screen_info = myDisplayGetScreenFromRoot (display_info, ev->root);
     if (!ev_screen_info)
     {
@@ -525,10 +527,6 @@ static eventFilterStatus
 handleKeyRelease (DisplayInfo *display_info, XKeyEvent * ev)
 {
     TRACE ("entering handleKeyRelease");
-    /* Seems we loose KeyRelease as a results of active grabs after
-     * a workspace switch of a cycling.
-     */
-    XAllowEvents (display_info->dpy, ReplayKeyboard, ev->time);
 
     return EVENT_FILTER_PASS;
 }



More information about the Xfce4-commits mailing list