From: Chris Michael Date: Wed, 1 Jul 2015 16:17:54 +0000 (-0400) Subject: e_grabinput: Don't call ecore_x functions if we are not an X compositor X-Git-Tag: upstream/0.20.0~664 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09592f57ffc3a504c86fa68a24707d59c6d2728d;p=platform%2Fupstream%2Fenlightenment.git e_grabinput: Don't call ecore_x functions if we are not an X compositor Signed-off-by: Chris Michael --- diff --git a/src/bin/e_grabinput.c b/src/bin/e_grabinput.c index a0ca5a8..abd6049 100644 --- a/src/bin/e_grabinput.c +++ b/src/bin/e_grabinput.c @@ -198,6 +198,12 @@ e_grabinput_mouse_win_get(void) static Eina_Bool _e_grabinput_focus_check(void *data EINA_UNUSED) { + if (e_comp->comp_type != E_PIXMAP_TYPE_X) + { + focus_fix_timer = NULL; + return EINA_FALSE; + } + if (ecore_x_window_focus_get() != focus_fix_win) { /* fprintf(stderr, "foc do 2\n"); */