[UPDATED PATCH] compiz - Auto unmaximize when attempting to drag maximized window (like Metacity).
Colin Guthrie
xorg at colin.guthr.ie
Mon Apr 24 02:25:47 PDT 2006
Hi,
I just realised that I did not deal with the scenario whereby there are
e.g gnome panels at the top of the screen. I was using the yRoot
variable as reference for the thresholds but say you have a 90px panel
at the top of the screen and my 100px limit starts to seem a bit odd.
I simply save the original y value at initiate and use this and the
yRoot value to work out an offset from the original position.
It does behave a little oddly when dragging a maximized window with the
ALT key when "snapping back" to maximized again, but hey ho ;)
Latest version will always be here: http://compiz.net/viewtopic.php?pid=3334
Col
--
+------------------------+
| Colin Guthrie |
+------------------------+
| xorg(at)colin.guthr.ie |
| http://colin.guthr.ie/ |
+------------------------+
More information about the xorg
mailing list