Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/x11


Modified Files:
        ewl_engine_x11.c 


Log Message:
- work on the menu/submenu interaction
- only reset the grab in the engine if the window requesting has the grab to
  begin with

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- ewl_engine_x11.c    3 Mar 2007 00:53:38 -0000       1.45
+++ ewl_engine_x11.c    7 Mar 2007 09:13:50 -0000       1.46
@@ -5,6 +5,8 @@
 #include "ewl_macros.h"
 #include "ewl_debug.h"
 
+static Ewl_Window *ee_current_grab_window = NULL;
+
 /*
  * In general all of the X event handlers should find their matching window
  * with ewl_window_window_find, and not ewl_embed_canvas_window_find. If the
@@ -696,8 +698,11 @@
        DCHECK_TYPE_RET("win", win, EWL_WINDOW_TYPE, FALSE);
 
        if ((!!(win->flags & EWL_WINDOW_GRAB_POINTER)))
+       {
                ret = ecore_x_pointer_grab((Ecore_X_Window)win->window);
-       else
+               ee_current_grab_window = win;
+       }
+       else if (ee_current_grab_window == win)
                ecore_x_pointer_ungrab();
 
        DRETURN_INT(ret, DLEVEL_STABLE);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to