Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        warp.c 


Log Message:
Fix focus list.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/warp.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -3 -r1.78 -r1.79
--- warp.c      20 Aug 2005 13:55:51 -0000      1.78
+++ warp.c      11 Sep 2005 01:50:10 -0000      1.79
@@ -54,6 +54,7 @@
 static unsigned int warpFocusKey = 0;
 static int          warplist_num = 0;
 static WarplistItem *warplist;
+static char         warpFirst = 0;
 
 #define ICON_PAD 2
 
@@ -149,6 +150,7 @@
         */
        GrabKeyboardSet(warpFocusWindow->win);
        GrabPointerSet(warpFocusWindow->win, None, 0);
+       warpFirst = 1;
      }
 
    for (i = 0; i < warplist_num; i++)
@@ -254,6 +256,7 @@
                   ((EwinIsOnScreen(ewin)) || (ewin->state.iconified)) &&
                   /* Exclude windows that explicitely say so */
                   (!ewin->props.skip_focuslist) &&
+                  (!ewin->props.skip_ext_task) &&
                   /* Keep shaded windows if conf say so */
                   ((!ewin->state.shaded) || (Conf.warplist.showshaded)) &&
                   /* Keep sticky windows if conf say so */
@@ -362,14 +365,23 @@
        break;
 #endif
      case KeyRelease:
-       if (!warpFocusWindow->shown || ev->xkey.keycode == warpFocusKey)
+       if (!warpFocusWindow->shown)
           break;
-       key = XLookupKeysym(&ev->xkey, 0);
+       if (warpFirst)
+         {
+            warpFirst = 0;
+            break;
+         }
+       if (ev->xkey.keycode == warpFocusKey)
+          key = XK_Tab;
+       else
+          key = XLookupKeysym(&ev->xkey, 0);
        switch (key)
          {
          default:
             WarpFocusFinish();
             break;
+         case XK_Tab:
          case XK_Down:
             WarpFocus(1);
             break;




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to