[Xfce4-commits] r26608 - xfwm4/trunk/src
Olivier Fourdan
olivier at xfce.org
Wed Feb 13 23:33:04 CET 2008
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;
}
More information about the Xfce4-commits
mailing list