Switching focus without pulling hidden windows into the foreground

From the shell window I open a file in a third window, check some things and make notes in the editor. To have no space occupied by the shell I use the TwoPane layout then. (The editor as master, the file viewer as
Hi, I often have this scenario: - one editor window - one shell window the only visible slave.) The problem with it is that if I switch from editor to the viewer or vice versa the non-master window gets replaced by the shell window first, so that I need to focusDown several times. Is it possible to switch focus only between visible windows without pulling hidden ones into the foreground? Bye, Tassilo

On Wed, Aug 01, 2007 at 12:10:28PM +0200, Tassilo Horn wrote:
Hi,
I often have this scenario:
- one editor window - one shell window
From the shell window I open a file in a third window, check some things and make notes in the editor. To have no space occupied by the shell I use the TwoPane layout then. (The editor as master, the file viewer as the only visible slave.)
The problem with it is that if I switch from editor to the viewer or vice versa the non-master window gets replaced by the shell window first, so that I need to focusDown several times.
Is it possible to switch focus only between visible windows without pulling hidden ones into the foreground?
It'd be an easy extension to write, but imagine it would be specific to the TwoPane layout, since I don't see how this could be implemented using the actual property of "switch focus between visible" windows. Instead it'd be "switch focus between the first two windows". -- David Roundy Department of Physics Oregon State University

David Roundy
Is it possible to switch focus only between visible windows without pulling hidden ones into the foreground?
It'd be an easy extension to write, but imagine it would be specific to the TwoPane layout, since I don't see how this could be implemented using the actual property of "switch focus between visible" windows.
Currently the TwoPane layout is the only layout that has hidden windows and multiple visible windows, so it wouldn't be a too big problem if it was specific to that layout.
Instead it'd be "switch focus between the first two windows".
So xmonad doesn't know what windows are visible and which one are hidden? Bye, Tassilo

On Wed, Aug 01, 2007 at 10:19:15PM +0200, Tassilo Horn wrote:
David Roundy
writes: Hi David,
Is it possible to switch focus only between visible windows without pulling hidden ones into the foreground?
It'd be an easy extension to write, but imagine it would be specific to the TwoPane layout, since I don't see how this could be implemented using the actual property of "switch focus between visible" windows.
Currently the TwoPane layout is the only layout that has hidden windows and multiple visible windows, so it wouldn't be a too big problem if it was specific to that layout.
Combo can also have this effect, particularly when combining with TwoPane. And Square behaves the same way.
Instead it'd be "switch focus between the first two windows".
So xmonad doesn't know what windows are visible and which one are hidden?
It'd have to re-display them, I believe. I don't know, maybe there is a way to find out. If so, it'd require some trickiness. Such trickiness, however, wouldn't work with Combo+TwoPane+Tabbed, since Tabbed hides windows by moving them to the back of the stack (i.e. so they are behind the focussed window), rather than by actually making them not visible. -- David Roundy Department of Physics Oregon State University

On Wednesday 01 August 2007 15:25:47 David Roundy wrote:
Tabbed hides windows by moving them to the back of the stack (i.e. so they are behind the focussed window), rather than by actually making them not visible.
Out of curiosity: why does it do this? Spencer Janssen

On Thu, Aug 02, 2007 at 09:42:49AM -0500, Spencer Janssen wrote:
On Wednesday 01 August 2007 15:25:47 David Roundy wrote:
Tabbed hides windows by moving them to the back of the stack (i.e. so they are behind the focussed window), rather than by actually making them not visible.
Out of curiosity: why does it do this?
It does this so Combo will work in combination with Tabbed (which is my normal layout). Without this behavior, Combo would need to keep track of which window was last visible within each sub-layout, so as to create a proper stack with that window having the appropriate focus. This is more book-keeping than I care to bother with, so I just use SimpleStacking. What Combo really wants is recursive Stacks, but reimplementing all of Operations in Combo is also more effort than I want to bother with. i.e. what I wish for would be something like: data Stack a = Singleton a | Stack [Stack a] (Stack a) [Stack a] so that you could describe a hierarchy of ordered window groupings with a given group focussed at each level. But we don't have that, so I need to approximate it, one way or another. I chose what seems to me to be the easiest approach--which is partly historical, since SimpleStacking used to be the default, built-in stacking approach. -- David Roundy Department of Physics Oregon State University

David Roundy
Is it possible to switch focus only between visible windows without pulling hidden ones into the foreground?
It'd be an easy extension to write, but imagine it would be specific to the TwoPane layout, since I don't see how this could be implemented using the actual property of "switch focus between visible" windows. Instead it'd be "switch focus between the first two windows".
I've just found out that `dwmpromote' does exactly what I need. This swaps the windows, too, but that's no problem for me. Bye, Tassilo
participants (3)
-
David Roundy
-
Spencer Janssen
-
Tassilo Horn