Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: ecore_evas_x.c Log Message: ignore grab in/out =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -3 -r1.64 -r1.65 --- ecore_evas_x.c 1 Nov 2005 09:49:12 -0000 1.64 +++ ecore_evas_x.c 2 Nov 2005 08:56:30 -0000 1.65 @@ -428,6 +428,40 @@ if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */ if ((e->win != ee->engine.x.win_container) && (e->win != ee->engine.x.win)) return 1; if (e->event_win == ee->engine.x.win_container) return 0; +/* + { + time_t t; + char *ct; + + const char *modes[] = { + "MODE_NORMAL", + "MODE_WHILE_GRABBED", + "MODE_GRAB", + "MODE_UNGRAB" + }; + const char *details[] = { + "DETAIL_ANCESTOR", + "DETAIL_VIRTUAL", + "DETAIL_INFERIOR", + "DETAIL_NON_LINEAR", + "DETAIL_NON_LINEAR_VIRTUAL", + "DETAIL_POINTER", + "DETAIL_POINTER_ROOT", + "DETAIL_DETAIL_NONE" + }; + t = time(NULL); + ct = ctime(&t); + ct[strlen(ct) - 1] = 0; + printf("@@ ->IN 0x%x 0x%x %s md=%s dt=%s\n", + e->win, e->event_win, + ct, + modes[e->mode], + details[e->detail]); + } + */ + if ((e->mode == ECORE_X_EVENT_MODE_GRAB) || + (e->mode == ECORE_X_EVENT_MODE_UNGRAB)) + return 0; /* if (e->mode != ECORE_X_EVENT_MODE_NORMAL) return 0; */ if (ee->func.fn_mouse_in) ee->func.fn_mouse_in(ee); _ecore_evas_x_modifier_locks_update(ee, e->modifiers); @@ -447,6 +481,40 @@ if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */ if ((e->win != ee->engine.x.win_container) && (e->win != ee->engine.x.win)) return 1; if (e->event_win == ee->engine.x.win_container) return 0; +/* + { + time_t t; + char *ct; + + const char *modes[] = { + "MODE_NORMAL", + "MODE_WHILE_GRABBED", + "MODE_GRAB", + "MODE_UNGRAB" + }; + const char *details[] = { + "DETAIL_ANCESTOR", + "DETAIL_VIRTUAL", + "DETAIL_INFERIOR", + "DETAIL_NON_LINEAR", + "DETAIL_NON_LINEAR_VIRTUAL", + "DETAIL_POINTER", + "DETAIL_POINTER_ROOT", + "DETAIL_DETAIL_NONE" + }; + t = time(NULL); + ct = ctime(&t); + ct[strlen(ct) - 1] = 0; + printf("@@ ->OUT 0x%x 0x%x %s md=%s dt=%s\n", + e->win, e->event_win, + ct, + modes[e->mode], + details[e->detail]); + } + */ + if ((e->mode == ECORE_X_EVENT_MODE_GRAB) || + (e->mode == ECORE_X_EVENT_MODE_UNGRAB)) + return 0; /* if (e->mode != ECORE_X_EVENT_MODE_NORMAL) return 0; */ _ecore_evas_x_modifier_locks_update(ee, e->modifiers); _ecore_evas_x_mouse_move_process(ee, e->x, e->y, e->time); ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs