From: tasn Date: Fri, 24 Jun 2011 06:59:30 +0000 (+0000) Subject: Evas events: handle MOUSE_OUT stuff only if there's no mouse grab on. X-Git-Tag: accepted/2.0/20130306.225542~242^2~411 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42a92868c66dd7ef609d0818c9a5feddf2ef3787;p=profile%2Fivi%2Fevas.git Evas events: handle MOUSE_OUT stuff only if there's no mouse grab on. ATTENTION: if you find any weird issues, please let me know. After testing here, reading the code and discussing it with raster I decided to commit it, but this is a very sensitive area. :P git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@60651 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_events.c b/src/lib/canvas/evas_events.c index ee8fe04..281c909 100644 --- a/src/lib/canvas/evas_events.c +++ b/src/lib/canvas/evas_events.c @@ -417,7 +417,7 @@ evas_event_feed_mouse_up(Evas *e, int b, Evas_Button_Flags flags, unsigned int t _evas_post_event_callback_call(e); } - if (!e->pointer.button) + if (e->pointer.mouse_grabbed == 0) { _post_up_handle(e, timestamp, data); } @@ -998,7 +998,7 @@ evas_event_feed_multi_up(Evas *e, if (e->delete_me) break; } if (copy) copy = eina_list_free(copy); - if (!_post_up_handle(e, timestamp, data)) + if ((e->pointer.mouse_grabbed == 0) && !_post_up_handle(e, timestamp, data)) _evas_post_event_callback_call(e); _evas_unwalk(e); }