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: Sun, 20 Apr 2014 13:20:40 +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=TnMNKxl61BeLrnu5G4lTgz5Fzq7QFeDNMeF1Ypxw7C8=; b=L+/l7c6VSBXk7DbS5G29EKxKvQDbrKuFzEyM9ly4iE0a4RasbfyjnKwIi7jRMnQ4uU JEm2HMylXMrjJ7Z8Zu9/9GU0V5cwoHghxFtganA3bJbKF28efmtTTPfp7b0YbOkam0Mk m33XufNOltoDKz7zdZuJmMLaLvReDYh8zZRmbnsxYWggBqym3HmbKaJMrR6xpECChfi1 CCgkRDB/korpsrPHnhNua308nXez7aEtp6ygEZP1z9c9lo7TWcVJNRoxUBedhY15ldyv hvZZPSLHdz6FcNBhXVZVpjFJ/Y1kaMFsaepyl+xwLkWfR+nGn3y+XCfZ/Sr+XNsLUzXs m6bg==
- 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
Hi,
On Sun, 20 Apr 2014 08:43:42 +0200
wrote Christopher Roy Bratusek <nano@xxxxxxxxxxx>:
>looks good, I'm gonna test a bit more before commiting.
>
>I found the cause for the errors when closing a tabbed window: it
>happens when you tab two instances of the same application. Tab two
>instances of SawfishConfig, close one = error. Must be because WM_*
>stuff is identical to both.
>
>Regards,
>Chris
Can't reproduces this. Testet with my settings and with a empty
~/.sawfish. If you want that i do more test send me your
~/.sawfish/custom and ~/.sawfish/sawfishrc
Also add a patch (09-tab-tiler-add.patch) by this mail.
Changes:
Disable raise-windows-on-focus by tabs if it not set in sawfish-config.
- --
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlNTrYgACgkQ5bxw1bjXsrBLfACaA42BfmMCK6LmDMVdr2vtKvzY
Ys4AoJUmUoh+lXpHo85vRWXtulmjQTpY
=MQCo
-----END PGP SIGNATURE-----
diff -urNad lisp.orgi/sawfish/wm/tabs/tabgroup.jl lisp/sawfish/wm/tabs/tabgroup.jl
--- lisp.orgi/sawfish/wm/tabs/tabgroup.jl
+++ lisp/sawfish/wm/tabs/tabgroup.jl
@@ -607,11 +607,11 @@
(nth 1 (frame-style-tabbars-support win)))))
(case current-pos
((top) (warp-cursor (+ (car (window-position win)) start-right (nth 4 tab-pos-list) (quotient (nth 6 tab-pos-list) 2))
- (+ (quotient (- (cdr (window-frame-dimensions win)) (cdr (window-dimensions win)) 2) 2) (cdr (window-position win)))))
+ (+ (quotient (- (cdr (window-frame-dimensions win)) (cdr (window-dimensions win)) 4) 2) (cdr (window-position win)))))
((bottom) (warp-cursor (+ (car (window-position win)) start-right (nth 4 tab-pos-list) (quotient (nth 6 tab-pos-list) 2))
(+ (quotient (- (cdr (window-frame-dimensions win)) (cdr (window-dimensions win))) 2)
- (cdr (window-position win)) (cdr (window-dimensions win)) 2)))
- ((left) (warp-cursor (+ (quotient (- (car (window-frame-dimensions win)) (car (window-dimensions win)) 2) 2) (car (window-position win)))
+ (cdr (window-position win)) (cdr (window-dimensions win)))))
+ ((left) (warp-cursor (+ (quotient (- (car (window-frame-dimensions win)) (car (window-dimensions win)) 4) 2) (car (window-position win)))
(- (+ (cdr (window-position win)) (cdr (window-dimensions win))) start-right (nth 7 tab-pos-list)
(quotient (nth 9 tab-pos-list) 2))))
((right) (warp-cursor (+ (quotient (- (car (window-frame-dimensions win)) (car (window-dimensions win))) 2)
@@ -645,7 +645,7 @@
(define timer-raise nil)
(define (focus-in-tab win)
- (let ((timer-wait (if raise-windows-on-focus raise-window-timeout '500)))
+ (let ((timer-wait (if raise-windows-on-focus raise-window-timeout '1)))
(if (or (eq focus-mode 'click)
(eq (window-get win 'focus-mode) 'click))
(setq timer-wait '1))