discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9eb3abd45ae55afdba72622e85d2e2802c5b62c1

commit 9eb3abd45ae55afdba72622e85d2e2802c5b62c1
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 fe15835..fe2e4ea 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -2718,6 +2718,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