efl selection manager - build again if no wl or no x is enabled

so make check and my builds passed because i have wl and x enabled. if
one of these isnt then this build will fail. my fix fails. this fixes
that.
This commit is contained in:
Carsten Haitzler 2018-04-05 19:16:16 +09:00
parent 37ff19c80e
commit 2105bc4fb1
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,7 @@ _owner_change_check(Efl_Selection_Manager *manager, Efl_Object *owner,
}
}
seat_sel2->xwin = 0;
#if defined(HAVE_ELEMENTARY_X) || defined(HAVE_ELEMENTARY_WIN32)
if (seat_sel2->sel_list)
{
int i;
@ -108,11 +109,14 @@ _owner_change_check(Efl_Selection_Manager *manager, Efl_Object *owner,
seat_sel2->sel_list[i].active = EINA_FALSE;
}
}
#endif
#if defined(HAVE_ELEMENTARY_WL2) || defined(HAVE_ELEMENTARY_COCOA)
if (seat_sel2->sel)
{
seat_sel2->sel->xwin = 0;
seat_sel2->sel->active = EINA_FALSE;
}
#endif
}
}
}