packages (DEVEL): awesome/awesome-magnifier.patch - fix magnifier layout
pawelz
pawelz at pld-linux.org
Wed Oct 14 22:05:25 CEST 2009
Author: pawelz Date: Wed Oct 14 20:05:25 2009 GMT
Module: packages Tag: DEVEL
---- Log message:
- fix magnifier layout
---- Files affected:
packages/awesome:
awesome-magnifier.patch (1.1.2.2 -> 1.1.2.3)
---- Diffs:
================================================================
Index: packages/awesome/awesome-magnifier.patch
diff -u /dev/null packages/awesome/awesome-magnifier.patch:1.1.2.3
--- /dev/null Wed Oct 14 22:05:25 2009
+++ packages/awesome/awesome-magnifier.patch Wed Oct 14 22:05:19 2009
@@ -0,0 +1,36 @@
+diff --git a/lib/awful/layout/suit/magnifier.lua.in b/lib/awful/layout/suit/magnifier.lua.in
+index 2d4a526..74a2398 100644
+--- a/lib/awful/layout/suit/magnifier.lua.in
++++ b/lib/awful/layout/suit/magnifier.lua.in
+@@ -34,6 +34,11 @@ function arrange(p)
+ fidx = 1
+ end
+
++ -- If focused window is floating, value of focus will change. We want to
++ -- save original value of focus and raise() it after seting geometry of
++ -- other clients.
++ originalfocus = focus
++
+ -- If focused window is not tiled, take the first one which is tiled.
+ if client.floating.get(focus) then
+ focus = cls[1]
+@@ -56,7 +61,6 @@ function arrange(p)
+ geometry.height = area.height
+ end
+ focus:geometry(geometry)
+- focus:raise()
+
+ if #cls > 1 then
+ geometry.x = area.x
+@@ -87,6 +91,11 @@ function arrange(p)
+ geometry.y = geometry.y + geometry.height
+ end
+ end
++
++ -- Raise primary tiled window and then the originally focused window. If
++ -- there was no floating window it is the same window.
++ focus:raise()
++ originalfocus:raise()
+ end
+
+ name = "magnifier"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/awesome/awesome-magnifier.patch?r1=1.1.2.2&r2=1.1.2.3&f=u
More information about the pld-cvs-commit
mailing list