e_grabinput: Don't call ecore_x functions if we are not an X compositor
authorChris Michael <cp.michael@samsung.com>
Wed, 1 Jul 2015 16:17:54 +0000 (12:17 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 1 Jul 2015 16:17:54 +0000 (12:17 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_grabinput.c

index a0ca5a8..abd6049 100644 (file)
@@ -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"); */