Re: [Sawfish] Patch to save memory and speed up StyleTab |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- To: <sawfish@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [Sawfish] Patch to save memory and speed up StyleTab
- From: fuchur <flohtransporter@xxxxxxxxx>
- Date: Wed, 7 May 2014 17:55:41 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :face:mime-version:content-type; bh=W4ggEaA6/XF+ZGYZRlnvW5BqEHgV+zMTzFW3WRHu+L8=; b=ve3NnIDUbqy7YTPLATbajb7k+p7emEcGUzJHP/0k94lKRs+Y9oDwYKs1lF2KlGZALO Cx9aVKotM9+Wwq/TzlDl+8P9gDULkgep9MdJmOlfT2eK7vu0Ur/MB37hwYLGlj91NEX3 cE3CM3OZS4YZcT3LybADBQwA5b+gPPLka0A2fnb1TVPtiX6KOn2CzN45kd6cYMexcVTm nYuVsNgBmPom1G35zrR5+pYNm0XQ1uSV/OG7RD/YX48SkYr1iY1ccVmXEdw++n+vKMDN /tHzv02875AAhi1nBw7cve7JX/Moyub5KwRp0KAMotJyqG/ZpGXT9zWocCeke9oD2G1U 0DsQ==
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXo6dXi2qlaWEv9/+78//DLrYv889H/lWcuAAACA0lEQVQ4ja2TQW7jMAxF5RbxWmwhrRMB3jtQ6gskBzAVMGupQXT/I8ynZU+n08xuGDhG8vSpL5IycYszPkucLvpt4ik+DQVPkWmvywYv5z8Uz1NNHdFrjCP5bJqHFYxOhMgRUSHawEkVImyJyfhaa59/a0yEwjom/b9Wsl+uAOYvQO+TMRsILL4o8JU6zmS7BYgEYVJFUQPOZ3JzA0nYU1WAVGJ3WNcAfFHfQHXCKbCzK0jhpjv7Whzhh5A7bSD0tfgsDBDCQNwU/BkgKRVcHFYNNKMkAHMXllwAg6hCoDhCbuvLIZuc31SBB0sb8FO8d2TMMQy1SwMnhqsPZPX3uFY/54It35hmIywKRlrANOlJnJAYPApyX02vxZuSWmYxTkGN9xhrVVDSoGutcSg7yMdtcvcMy106ALA1cAF39WU/pUPuUV24JXk1Zsc7djzJDV6LJYdKOfKo7s4fxc3I8WDvyOm5Hb/rlET00KLqpVZWgVbl2iZxJ1vHtSCIYW7ggQ6uAF3ady4JwPmkYPkfhx5SeEd5VvCxgrJsjaNOa6rjBrQXVz0+NTAqKAowBxjcc3Tr/YAtSpgtgNezgh0AXnHU5AFFG7gN7tgUp2hDi+t2TzfQ04N1buLfYCzFE1n5cTnHPldTH9fvQHe3aN8x3X9eZ6eG9/EnWObx28028R/xH8EvDGr5+fmwfm8AAAAASUVORK5CYII=
- Organization: W.W
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Tue, 6 May 2014 18:11:15 +0200
wrote fuchur <flohtransporter@xxxxxxxxx>:
Patch 13-tab-tiler-add.patch:
Changes:
If the cabinet interface larger as the screen height, display the top
from cabinet not outside from the screen.
Apply the patch after all other patches from this thread.
- - --
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlNqVt8ACgkQ5bxw1bjXsrDB9gCfaeI32O6xs+lxRb5Td1WdAYA0
KjUAoIUDU+JZu8nBYrUEjFPBhwoTfR6o
=a7le
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlNqV30ACgkQ5bxw1bjXsrAfwgCfb5+GmKaKlgjP5mSwbWIOEcdx
W5EAn0hyTM8cUjL8gnspbiNhzesVusjk
=kzQF
-----END PGP SIGNATURE-----
diff -urNad sawfish.orgi/lisp/sawfish/wm/ext/cabinet.jl sawfish/lisp/sawfish/wm/ext/cabinet.jl
--- sawfish.orgi/lisp/sawfish/wm/ext/cabinet.jl
+++ sawfish/lisp/sawfish/wm/ext/cabinet.jl
@@ -502,9 +502,11 @@
(- (quotient (car (head-dimensions head)) 2)
(quotient wx 2)))
.
- ,(+ (cdr (head-offset head))
- (- (quotient (cdr (head-dimensions head)) 2)
- (quotient wy 2))))
+ ,(if (> (cdr win-size) (cdr (head-dimensions head)))
+ '0
+ (+ (cdr (head-offset head))
+ (- (quotient (cdr (head-dimensions head)) 2)
+ (quotient wy 2)))))
win-size
1
`((background . ,cabinet:background))