Evas events: handle MOUSE_OUT stuff only if there's no mouse grab on.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 24 Jun 2011 06:59:30 +0000 (06:59 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 24 Jun 2011 06:59:30 +0000 (06:59 +0000)
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

src/lib/canvas/evas_events.c

index ee8fe04..281c909 100644 (file)
@@ -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);
 }