Author: olivier
Date: 2008-11-20 18:12:51 +0000 (Thu, 20 Nov 2008)
New Revision: 28868
Modified:
xfwm4/trunk/ChangeLog
xfwm4/trunk/NEWS
xfwm4/trunk/src/moveresize.c
Log:
* src/moveresize.c: Work arround a problem affecting the use of
the "Super" key as modifier for moving windows (Bug #4632)
Modified: xfwm4/trunk/ChangeLog
===================================================================
--- xfwm4/trunk/ChangeLog 2008-11-20 07:10:41 UTC (rev 28867)
+++ xfwm4/trunk/ChangeLog 2008-11-20 18:12:51 UTC (rev 28868)
@@ -1,3 +1,8 @@
+2008-11-20 olivier
+
+ * src/moveresize.c: Work arround a problem affecting the use of
+ the "Super" key as modifier for moving windows (Bug #4632)
+
2008-11-19 olivier
* settings-dialogs/workspace-settings.c: Trivial optimization, no need
Modified: xfwm4/trunk/NEWS
===================================================================
--- xfwm4/trunk/NEWS 2008-11-20 07:10:41 UTC (rev 28867)
+++ xfwm4/trunk/NEWS 2008-11-20 18:12:51 UTC (rev 28868)
@@ -1,3 +1,9 @@
+4.5.99.1 (Xfce 4.6rc1)
+======================
+
+- Work arround a problem affecting the use of the "Super" key as modifier for
+ moving windows (Bug #4632)
+
4.5.92 (Xfce 4.6beta2)
======================
Modified: xfwm4/trunk/src/moveresize.c
===================================================================
--- xfwm4/trunk/src/moveresize.c 2008-11-20 07:10:41 UTC (rev 28867)
+++ xfwm4/trunk/src/moveresize.c 2008-11-20 18:12:51 UTC (rev 28868)
@@ -194,6 +194,13 @@
}
}
+static gboolean
+clientKeyPressIsModifier (XEvent *xevent)
+{
+ int keysym = XLookupKeysym (&xevent->xkey, 0);
+ return (gboolean) IsModifierKey(keysym);
+}
+
static void
clientSetHandle(MoveResizeData *passdata, int handle)
{
@@ -629,7 +636,7 @@
}
else
{
- moving = FALSE;
+ moving = clientKeyPressIsModifier(xevent);
}
}
else if (xevent->type == ButtonRelease)
@@ -1255,7 +1262,7 @@
}
else
{
- resizing = FALSE;
+ resizing = clientKeyPressIsModifier(xevent);
}
}
else if (xevent->type == MotionNotify)
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits