Re: [wmii] Stacks in a column

2009-03-21 Thread Philipp Hartwig
> When you try to switch to a collapsed client with the mouse, some other 
> window has to be collapsed for it to open. In most cases, the natural and 
> expected choice is the currently selected client. The same behavior just 
> happens to carry over when you're switching from the top of the stack to 
> the bottom. 

Thank you very much for the explanation. 

> The only other option is to search up the stack for a window to 
> collapse, which might be a good idea, but isn't not the currently 
> defined behavior.

No need for a change on my part, I'll just use the "select up/down 
stack" commands in this situation in order to leave the proportions of 
the column unchanged. I only wanted to understand the behavior.



Re: [wmii] Stacks in a column

2009-03-20 Thread Kris Maglione

On Fri, Mar 20, 2009 at 10:11:34AM +0100, Philipp Hartwig wrote:
1) Open a column in default mode containing three clients I call 1, 
  2 and 3 from top to bottom.
2) If you resize 3 upwards until there is no place left for 2, 2 and 
  3 will form a stack occupying two-thirds of the column which is 
  great.
3) Now switch focus upwards 3->2->1->3. Now 1 and 2 form a stack 
  occupying two-thirds of the column and 3 is alone at the bottom.
4) Going upwards 3->2->1->3 again, we get back our stack of 2 and 3 
  but now occupying one-third of the column.


It's only after two more cycles 3->2->1->3 that we get back our 
original setup. Why are the stacks changed when switching focus 
upwards 1->3? Is this a technical necessity, a feature or an 
unintended behavior? To me it would seem more logical to just leave 
them in place.


When you try to switch to a collapsed client with the mouse, 
some other window has to be collapsed for it to open. In most 
cases, the natural and expected choice is the currently selected 
client. The same behavior just happens to carry over when you're 
switching from the top of the stack to the bottom. The only 
other option is to search up the stack for a window to collapse, 
which might be a good idea, but isn't not the currently defined 
behavior.


--
Kris Maglione

It is practically impossible to teach good programming style to
students that have had prior exposure to Basic; as potential
programmers they are mentally mutilated beyond hope of regeneration.
--Edsger W. Dijkstra