ecore-wayland: return only the relevant state value for maximize/fullscreen

having window types for fullscreen/maximize is not defined by spec and leads
to state mismatches when toggling from api vs receiving events from the compositor

@fix
This commit is contained in:
Mike Blumenkrantz 2015-11-17 18:23:07 -05:00
parent 3b139fe0f1
commit 3b480804fc
1 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ ecore_wl_window_maximized_get(Ecore_Wl_Window *win)
if (!win) return EINA_FALSE;
return win->maximized || (win->type == ECORE_WL_WINDOW_TYPE_MAXIMIZED);
return win->maximized;
}
EAPI void
@ -531,7 +531,7 @@ ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win)
if (!win) return EINA_FALSE;
return win->fullscreen || (win->type == ECORE_WL_WINDOW_TYPE_FULLSCREEN);
return win->fullscreen;
}
EAPI void