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

SVN revision: 60651
This commit is contained in:
Tom Hacohen 2011-06-24 06:59:30 +00:00
parent 5bff0873d1
commit 584bb92495
1 changed files with 2 additions and 2 deletions

View 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);
}