summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-06-01 13:07:45 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-06-01 13:11:20 -0400
commit07ed7a1433e1ff3ecdaea65d06c73452a9352fa1 (patch)
treeb2a1948a5c60cf5d16c5e69091d08b8d148fd067
parent492f9bcf4e1d430050af67fd0a78d4455baef7d2 (diff)
downloadenlightenment-07ed7a1433e1ff3ecdaea65d06c73452a9352fa1.tar.gz
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
-rw-r--r--src/bin/e_comp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 4247099fb0..7fc6a2b7dd 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -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;
}