Author: olivier
Date: 2008-02-13 22:33:04 +0000 (Wed, 13 Feb 2008)
New Revision: 26608

Modified:
   xfwm4/trunk/src/focus.c
Log:
Pass mouse button grab at initial mapping to avoid loosing the last ungrab

Modified: xfwm4/trunk/src/focus.c
===================================================================
--- xfwm4/trunk/src/focus.c     2008-02-13 20:23:26 UTC (rev 26607)
+++ xfwm4/trunk/src/focus.c     2008-02-13 22:33:04 UTC (rev 26608)
@@ -176,6 +176,7 @@
         clientSetFocus (screen_info, c,
                         myDisplayGetCurrentTime (display_info),
                         FOCUS_IGNORE_MODAL);
+        clientPassGrabMouseButton (c);
     }
     else
     {
@@ -739,17 +740,16 @@
         return;
     }
 
-    TRACE ("ungrabing buttons for client \"%s\" (0x%lx)", c->name, c->window);
     if (last_ungrab == c)
     {
         return;
     }
 
+    TRACE ("ungrabing buttons for client \"%s\" (0x%lx)", c->name, c->window);
     if (last_ungrab)
     {
         clientGrabMouseButton (last_ungrab);
     }
-
     clientUngrabMouseButton (c);
     last_ungrab = c;
 }

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

Reply via email to