Enlightenment CVS committal
Author : pfritz
Project : e17
Module : apps/elitaire
Dir : e17/apps/elitaire/src
Modified Files:
edje_frontend_gui.cpp
Log Message:
work-around the annoying menu/event freeze bug
===================================================================
RCS file: /cvs/e/e17/apps/elitaire/src/edje_frontend_gui.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- edje_frontend_gui.cpp 9 Aug 2007 21:45:49 -0000 1.11
+++ edje_frontend_gui.cpp 25 Apr 2008 17:48:33 -0000 1.12
@@ -477,10 +477,10 @@
eef = (Eli_Edje_Frontend *) data;
ev = (Evas_Event_Mouse_Down *) event_info;
-
+
if (ev->button != 3)
return;
-
+
/* fetch the position of the window */
ecore_evas_geometry_get(eef->ee, &x, &y, NULL, NULL);
x += (Evas_Coord) ev->canvas.x;
@@ -490,6 +490,9 @@
ewl_popup_mouse_position_set(EWL_POPUP(eef->conmenu), x, y);
ewl_widget_show(eef->conmenu);
ewl_widget_focus_send(eef->conmenu);
+
+ /* work-around to not keep the object in grap mode */
+ evas_event_feed_mouse_up(e, ev->button, ev->flags, ev->timestamp, NULL);
}
static void _quit_cb(void * data, Evas_Object * o, const char * emission,
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs