Hi,

There has been a small itch in e16 that has bothered me for quite a 
while, and I decided to look at it today.

The issue is simple: when a window is iconified, it is included in the 
warp focus list (the alt-tab one) only when the current virtual desktop 
and real desktop are the same than the one when it was iconified. As I 
use the iconbox as an app shelf (keeping nicely positioned shells 
around, or useful little apps), I wanted to be able to alt-tab to these 
windows from any desktop / virtual desktop.

Here is the small change that does this:

schmitta:/usr/src/enlightenment/e16/e> cvs diff
Index: src/warp.c
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/warp.c,v
retrieving revision 1.33
diff -u -p -r1.33 warp.c
--- src/warp.c  2 Feb 2004 19:42:35 -0000       1.33
+++ src/warp.c  23 Feb 2004 15:40:38 -0000
@@ -100,9 +100,14 @@ WarpFocus(int delta)
             for (i = num0 - 1; i >= 0; --i)
               {
                  ewin = lst0[i];
-                 if (((ewin->sticky) || (ewin->desktop == desks.current))
-                     && (ewin->x + ewin->w > 0) && (ewin->x < root.w)
-                     && (ewin->y + ewin->h > 0) && (ewin->y < root.h)
+                 if (/* Either sticky, in current desktop, or iconified */
+                      (   (ewin->sticky) || (ewin->desktop == desks.current)
+                       || (ewin->iconified))
+                     && 
+                      /* Either in current area or iconified */
+                      ((  (ewin->x + ewin->w > 0) && (ewin->x < root.w)
+                     && (ewin->y + ewin->h > 0) && (ewin->y < root.h))
+                       || (ewin->iconified))
                      && (!ewin->skipfocus) && !(ewin->shaded
                                                 && !conf.warplist.warpshaded)
                      && (!ewin->menu) && (!ewin->pager) && !(ewin->sticky

I can also add an extra configuration option if need be (we already can 
say whether we want to focus on iconified windows, but we cannot say 
whether we want this behaviour to depend on where the windows were 
iconified ... I'm not sure it would be very useful though).

Alan Schmitt

-- 
The hacker: someone who figured things out and made something cool happen.
.O.
..O
OOO

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to