reverse order of shell binding in wl_desktop_shell module
Small patch to reverse order of shell binding so that we always support the newest shell first and fallback to older ones. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
3b3e2e9897
commit
9b457513e4
|
@ -161,18 +161,19 @@ e_modapi_init(E_Module *m)
|
||||||
{
|
{
|
||||||
Eina_Bool have_shell;
|
Eina_Bool have_shell;
|
||||||
|
|
||||||
/* try to create global shell interface */
|
have_shell = e_xdg_shell_v6_init();
|
||||||
if (!wl_global_create(e_comp_wl->wl.disp, &wl_shell_interface, 1,
|
have_shell &= e_xdg_shell_v5_init();
|
||||||
NULL, wl_shell_cb_bind))
|
if (!have_shell)
|
||||||
{
|
{
|
||||||
ERR("Could not create shell global");
|
/* try to create global shell interface */
|
||||||
return NULL;
|
if (!wl_global_create(e_comp_wl->wl.disp, &wl_shell_interface, 1,
|
||||||
|
NULL, wl_shell_cb_bind))
|
||||||
|
{
|
||||||
|
ERR("Could not create shell global");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
have_shell = e_xdg_shell_v5_init();
|
|
||||||
have_shell &= e_xdg_shell_v6_init();
|
|
||||||
if (!have_shell) return NULL;
|
|
||||||
|
|
||||||
#ifdef HAVE_WL_TEXT_INPUT
|
#ifdef HAVE_WL_TEXT_INPUT
|
||||||
if (!e_input_panel_init())
|
if (!e_input_panel_init())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue