ecore-wayland: Make ecore_wl_window_maximized_get return proper values

This brings ecore_wl_window_maximized_get more inline with
ecore_wl_fullscreen_get function in that it will now check either the
window maximized state, or the window type, to determine if a window
is actually maximized

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-11-17 15:57:45 -05:00
parent 85b04c188a
commit eacd4cc6f6
1 changed files with 1 additions and 4 deletions

View File

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