e_grabinput: Don't call ecore_x functions if we are not an X compositor

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-01 12:17:54 -04:00
parent e94a04eddc
commit 09592f57ff
1 changed files with 6 additions and 0 deletions

View 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"); */