diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-06-16 14:59:42 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-06-16 15:00:12 -0400 |
commit | 339cbde73122f5406a93b8059cec7012b30654d1 (patch) | |
tree | a2918eebcf831eec8253878b8efae10bf598b92f | |
parent | bc175b0d7bb44a369c3ea6fba417c3ee2c0aeb20 (diff) | |
download | enlightenment-339cbde73122f5406a93b8059cec7012b30654d1.tar.gz |
reject client mouse move if coords match previous position
ensure that random event feeds don't accidentally trigger unwanted
move/resize attempts which can break the compositor
-rw-r--r-- | src/bin/e_client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/e_client.c b/src/bin/e_client.c index a7eaf375aa..4f044efedb 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -758,9 +758,7 @@ static void _e_client_action_event_grabber_mouse_move(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) { Evas_Event_Mouse_Move *ev = event_info; - if (action_client && - ((ev->cur.output.x != action_client->mouse.current.mx) || - (ev->cur.output.y != action_client->mouse.current.my))) + if (action_client) e_client_mouse_move(action_client, &ev->cur.output); } @@ -3092,6 +3090,7 @@ e_client_mouse_move(E_Client *ec, Evas_Point *output) { EINA_SAFETY_ON_NULL_RETURN(ec); if (ec->iconic || e_client_util_ignored_get(ec)) return; + if ((ec->mouse.current.mx == output->x) && (ec->mouse.current.my == output->y)) return; ec->mouse.current.mx = output->x; ec->mouse.current.my = output->y; if (ec->moving) |