forked from enlightenment/enlightenment
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:
parent
492f9bcf4e
commit
07ed7a1433
|
@ -1701,8 +1701,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue