[xmonad] Wanting to do a window-shift in a event handler
Brandon S Allbery KF8NH
allbery.b at gmail.com
Mon May 2 03:59:05 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/1/11 21:36 , Michael Norrish wrote:
> On 02/05/11 11:20, Brandon S Allbery KF8NH wrote:
>> On 5/1/11 20:28 , Michael Norrish wrote:
>>> giving me a handle on an Endo Windowset, but I don't know how to
>>> lift that into the X monad (where I have to eventually return $ All
>>> True). Can I use the withWindowSet function somehow?
>> windows (W.shift "mail" w)
>> which reruns the layout with the specified modification.
>
> This doesn't quite work because w is a Window, not a WindowSet. However, the following does appear to do the right thing
>
> action <- runQuery (doShift "mail") w
> windows (appEndo action)
Yeh, I did that without looking fully; shift uses the focused window instead
of a specified one. Sorry about that.
The correct expression looks to be
> windows (W.shiftWin "mail" w)
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery.b at gmail.com
system administrator [openafs,heimdal,too many hats] kf8nh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2+D+kACgkQIn7hlCsL25ULZQCgg9jahzVEObd9I++ZGl4Lr6xl
c+sAnjVN1EzHpv2nl3QO8MxqBUQCszxD
=eI+w
-----END PGP SIGNATURE-----
More information about the xmonad
mailing list