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: Sat, 31 Mar 2012 18:50:47 +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=mY+MKkZaehGx49AGTWQXL+p/EgscSISyOP0ADWw8nw4=; b=PQ/Fthxs+UBovfCGu/rQ2quduDUQnElrkvz7bLzHI7FvvoGiL6PcmAigLlOKXbtTPE NhFBYSY+9ywFiPbO2Jgo+go0K8kwYF9hBWQxDxDeTSX5XX2qzjytguOxjJRqO83JdmRp 2POcWPbpIh83g5iI+w+C0OgRSQ2p14WNHoqlHwCgDfrG2R6mlse29XCe/sSauzVlNNRZ UgwnMtiH2FZDX7PiIkn8DF8I2b0UcUs9BARAjYZH37w/ErtOQXmmgaW5MTHgI6rD465f /9vjkeV3ie+wYQd3WemXqIG0mbAGRUtGanIYA8Hr/8Q92oq/FOQ7yR+vTL7E3jBXy5bS fiVw==
- 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 Sat, 31 Mar 2012 12:50:07 +0900 (JST)
wrote Teika Kazura <teika@xxxxxxxxxxx>:
>Why anyone hasn't complained so far??
>
>Let me give a slight fix. It should be combined with the handling
>of focus-when-mapped, which is done in wm/state/transient.jl. (You can
>search by "git grep", like:
> $ git grep focus-when-mapped
>Or you can use "ack" command.)
>I wrote a patch. It also ensures that the switching of the
>workspace is done before set-input-focus. It should be so if your
>focus-mode is enter-exit. It's done in map-notify-hook.
>
>fuchur, could you test it? I don't use workspaces. (Please use the
>original focus.jl)
>
>Teika (Teika kazura)
I have test your patch, and the patch is not work. I have also do some
tests. w returns the correct window by (set-input-focus w) in "(define
(transient-map-window w)" if the window appears on the current
workspace, but appears the window on a other workspaces as the selected
w is by (set-input-focus w) nil.
At this moment i can't see how to fix it in transient-map-window, you
know i'm not a programmer, here only "learning by doing and testing".
--
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
Attachment:
signature.asc
Description: PGP signature