[xmonad] window placement where previously closed window was
byorgey at seas.upenn.edu
Tue Jun 30 11:21:49 EDT 2009
On Tue, Jun 30, 2009 at 01:58:39PM +0200, Matthias Merk wrote:
> i was wondering if it's possible to configure xmonad to place a new
> window in the very same place where the previously closed window has
> i'm currently using:
> xmonad 0.8.1 and the grid layout most of the time (
> for example when i'm closing a terminal in the bottom right corner,
> the next terminal opens in the top right corner changing the position
> of at least on other window.
If you open a new window it always appears immediately "above" the
currently focused window in the stack (although different layouts may
interpret the stack differently, so this may not correspond to "above"
in a physical sense). This means that if you close a window and
immediately open a new one, it will always open in the same place as
the one that was closed. If you move the focus around first, the new
window will open above whatever window has the focus.
In theory, it should be possible to code an extension module that
remembers where the last closed window was, and with a special message
you can tell it to jump back to the position just below there, so that
a subsequent window creation would place the new window where the most
recently closed one was. But nothing like that exists at the moment,
to my knowledge.
More information about the xmonad