Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: E.h aclass.c ewins.c Log Message: Enable actions on focus in/out. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v retrieving revision 1.477 retrieving revision 1.478 diff -u -3 -r1.477 -r1.478 --- E.h 7 Aug 2005 14:06:48 -0000 1.477 +++ E.h 10 Aug 2005 19:33:33 -0000 1.478 @@ -276,6 +276,8 @@ #define EVENT_KEY_DOWN 4 #define EVENT_KEY_UP 5 #define EVENT_DOUBLE_DOWN 6 +#define EVENT_FOCUS_IN 7 +#define EVENT_FOCUS_OUT 8 #define GROUP_SELECT_ALL 0 #define GROUP_SELECT_EWIN_ONLY 1 =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/aclass.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- aclass.c 16 Jul 2005 16:57:35 -0000 1.18 +++ aclass.c 10 Aug 2005 19:33:33 -0000 1.19 @@ -897,6 +897,16 @@ modifiers = ev->xcrossing.state & mask; mouse = 1; break; + case FocusIn: + type = EVENT_FOCUS_IN; + button = -1; + mouse = 1; + break; + case FocusOut: + type = EVENT_FOCUS_OUT; + button = -1; + mouse = 1; + break; default: break; } =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/ewins.c,v retrieving revision 1.93 retrieving revision 1.94 diff -u -3 -r1.93 -r1.94 --- ewins.c 10 Aug 2005 15:31:48 -0000 1.93 +++ ewins.c 10 Aug 2005 19:33:33 -0000 1.94 @@ -1778,8 +1778,14 @@ case MotionNotify: case EnterNotify: case LeaveNotify: + break; case FocusIn: case FocusOut: + if (ev->xfocus.detail == NotifyInferior) + break; + if (ewin->border->aclass) + ActionclassEvent(ewin->border->aclass, ev, ewin); + break; case ConfigureNotify: case GravityNotify: 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