From: Mike Blumenkrantz Date: Mon, 20 Jul 2015 17:32:06 +0000 (-0400) Subject: only perform keybind grabs on root window for x11 compositors X-Git-Tag: upstream/0.20.0~542 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d7674153327d354f3d1b6ecea2ddd957b006938;p=platform%2Fupstream%2Fenlightenment.git only perform keybind grabs on root window for x11 compositors --- diff --git a/src/bin/e_comp_canvas.c b/src/bin/e_comp_canvas.c index d494baf..7300c18 100644 --- a/src/bin/e_comp_canvas.c +++ b/src/bin/e_comp_canvas.c @@ -657,13 +657,13 @@ e_comp_canvas_client_layer_map_nearest(int layer) E_API void e_comp_canvas_keys_grab(void) { - if (e_comp->root) + if (e_comp->comp_type == E_PIXMAP_TYPE_X) e_bindings_key_grab(E_BINDING_CONTEXT_ANY, e_comp->root); } E_API void e_comp_canvas_keys_ungrab(void) { - if (e_comp->root) + if (e_comp->comp_type == E_PIXMAP_TYPE_X) e_bindings_key_ungrab(E_BINDING_CONTEXT_ANY, e_comp->root); }