force mouse-in again during comp ungrab if client previously had mouse-in

unfocus performs a mouse-out, so this is necessary in order to allow events
to reach the client again after a grab ends
This commit is contained in:
Mike Blumenkrantz 2016-06-01 13:07:45 -04:00
parent 90ecf5401b
commit 08867e5440
1 changed files with 7 additions and 0 deletions

View File

@ -1696,8 +1696,15 @@ e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd)
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
{
Eina_Bool mouse_in = ec->mouse.in;
int x, y;
x = ec->mouse.current.mx;
y = ec->mouse.current.my;
evas_object_focus_set(ec->frame, 0);
evas_object_focus_set(ec->frame, 1);
if (mouse_in)
e_client_mouse_in(ec, x, y);
}
return;
}