Here is a patch that cleans up some of the workspace code, eliminating the 
(creation order) window list and instead just uses the (zordered) stacking 
list for everything. It also modifies the the Bscreen:Next/PrevFocus 
functions to use this zordered list as well.

This results in a bit more intuitive alt-tabbing, because rather then 
jumping to the next window that was created after the current one (hard to 
keep track of) it jumps to the next window in the stacking list(a little bit 
easier).

I also made it so Next/PrevFocus does not raise the window. This is because 
this patch should really be complemented by a patch to bbkeys that catches  
Alt keyup events and if we've been alt-tabbing, raises the now selected 
window to the top. This would give blackbox alt-tab functionality similar to 
that found in other window managers (and yes, also Windows).

I'm also considering keeping a focus ordered list, so alt-tab would move to 
the last focused, rather then the next in zorder. Also when a window 
disappears, the previously focused window would then be selected, etc, etc.  
Although this seems like a bit more work, and may be somewhat of an uncooked 
thoguht.

Anyway, comments are wanted. So let me know if you have problems or like the 
idea, or already have implemented a complementing patch to bbkeys or what 
not ;)

patch can be found at:
http://www.andrew.cmu.edu/~jstultz/misc/zorder_next-0.0.1.patch

have fun
-john
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to