fix evry mouse event detection on wayland

This commit is contained in:
Mike Blumenkrantz 2015-04-27 14:36:42 -04:00
parent b632afa546
commit 7c661b54a9
1 changed files with 2 additions and 1 deletions

View File

@ -890,7 +890,8 @@ _evry_cb_mouse(void *data, int type, void *event)
if (!win->grab)
return ECORE_CALLBACK_PASS_ON;
if (ev->event_window != elm_win_window_id_get(win->ewin))
if ((win->grab && (ev->event_window != ecore_evas_window_get(e_comp->ee))) &&
(ev->event_window != elm_win_window_id_get(win->ewin)))
return ECORE_CALLBACK_PASS_ON;
ewin = win->ewin;