[xmonad] Re: Changing focus with alt-tab as in Windows
roma at ro-che.info
Tue Jan 6 06:35:23 EST 2009
* mail at justinbogner.com <mail at justinbogner.com> [2009-01-05 21:41:07-0700]
> Alex Samokhvalov <xmonad at rz2013.a7d.de>
> > For example, a workspace contains 5 windows: A,B,C,D,E. The first
> > window in the list is selected, in this case - A. Then as in the
> > following scenario:
> > - alt button down:
> > * pressing the tab results in the following window order: B,A,C,D,E
> > (whereby B is focused)
> > * tab pressed again -> C,A,B,D,E
> > - alt button up -> "commit" C,A,B,D,E
> > - alt button down
> > * tab pressed -> A,C,B,D,E
> > * tab pressed -> B,C,A,D,E
> > * tab pressed -> D,C,A,B,E
> > - alt button up -> "commit" D,C,A,B,E
> > I find such behavior convenient because usually you work with only a
> > couple of windows. All others are just for logging, reporting, etc.
> This is not an easy behaviour to emulate in xmonad, since we don't keep
> track of the order in which we have focused various windows: we normally
> only know what the currently focused window is.
We can store this information in a layout modifier. alt-tab would send a
message to that layout, and message handler would change the focus.
Has not anybody written this already?
P.S. I think we should have a wiki page which describes tasks that are
solved by each module.
Roman I. Cheplyaka (aka Feuerbach @ IRC)
More information about the xmonad