discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0c518414e1988683137b73a15f7e214760c068ef

commit 0c518414e1988683137b73a15f7e214760c068ef
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Jul 1 17:01:54 2015 -0400

    reject x11 replay clicks when event window != client window
---
 src/bin/e_comp_x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 861241b..f3eaad4 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -2598,6 +2598,7 @@ _e_comp_x_grab_replay(void *data EINA_UNUSED, int type, 
void *event)
    ec = _e_comp_x_client_find_by_window(ev->event_window);
    if (!ec) return ECORE_CALLBACK_DONE;
    if (ec->cur_mouse_action) return ECORE_CALLBACK_DONE;
+   if (ev->event_window != _e_comp_x_client_util_win_get(ec)) return 
ECORE_CALLBACK_DONE;
    e_bindings_ecore_event_mouse_button_convert(ev, &ev2);
    return !e_bindings_mouse_button_find(E_BINDING_CONTEXT_WINDOW,
                                         &ev2, NULL);

-- 


Reply via email to