forked from enlightenment/efl
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:
parent
3b139fe0f1
commit
3b480804fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue