Re: [Sawfish] Activate workspace if 'focus-windows-when-mapped set patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- To: <sawfish@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [Sawfish] Activate workspace if 'focus-windows-when-mapped set patch
- From: fuchur <flohtransporter@xxxxxxxxx>
- Date: Tue, 3 Apr 2012 14:01:29 +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:x-face:mime-version:content-type:x-mailscanner-spamcheck; bh=lFTkWCr1T4vEE1zMSxZlMjo2lMG/Ew5ecVfxPWBxpi8=; b=08YrE7sgvZUsLR57PO4AxGjGRK+L/XQYzrkWaRORfIRex1JAxkuQE+xglBxTD7QLMW TGQcUqOHxLnxz/05QJi1y37eglXredZhYWFEXFGvX+8z9ev2s8T+Jw7bGubvY5w9Az1I jEU96DRXMmGe11qHfZ4QoAmXhluXMbQL9iisFO95NlWpf26DD5BzaVP0BlO6cBnSebrw Ir67CxJlG3T3PVEFQl9E8R3pvaxRYSq1jy6XSbDGYtMelAl/jGxdRH9R1zvOrbRfj850 3Ubx+zZNEg1A72zeDSp6qwlZfizA918Lz3oZwGan2PKZPc75Eu+2kU5iAWSzijgjtRRl 1RTg==
- 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
Hi,
On Tue, 03 Apr 2012 15:54:40 +0900 (JST)
wrote Teika Kazura <teika@xxxxxxxxxxx>:
>On Tue, 3 Apr 2012 04:04:33 +0200, fuchur wrote:
>> (when (and (window-really-wants-input-p w)
>> - (window-visible-p w)
>> + (or (window-visible-p w)
>> + (window-workspaces w))
>> (or (let ((focus (input-focus)))
>
>The logic is correct, but please delete this part. window-workspaces
>returns nil if it's WS sticky. (It should be documented.) But the
>original goal of this function is to *focus* the mapped window. With
>this hunk, a sticky window won't get the focus, I'm afraid.
Sticky get focus with the patch, i have check this. I don't know why
without my patch window-visible-p is necessary so maybe it gives
windows which not visible and also not appears on a workspace.
Activate workspace will only work if we remove both
(or (window-visible-p w)
(window-workspaces w))
only remove (window-workspaces w)) can't work because if "appears"
windows on a other workspace as select window-visible-p is nil.
Do you sure window-visible-p is only there to check if window
on the current workspace?
--
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
Attachment:
signature.asc
Description: PGP signature