ecore-wayland: Reduce overhead for maximize/fullscreen set functions

This patch just gets the state flags directly from the window rather
than calling "get" functions to return the same parameter.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-11-18 12:56:12 -05:00
parent 4534c4aec3
commit 2ebef8010e
1 changed files with 3 additions and 5 deletions

View File

@ -455,10 +455,9 @@ ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
EINA_SAFETY_ON_NULL_RETURN(win);
prev = ecore_wl_window_maximized_get(win);
prev = win->maximized;
maximized = !!maximized;
if (prev == maximized) return;
if (maximized)
@ -499,11 +498,10 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
EINA_SAFETY_ON_NULL_RETURN(win);
prev = ecore_wl_window_fullscreen_get(win);
prev = win->fullscreen;
fullscreen = !!fullscreen;
if (prev == fullscreen) return;
if (fullscreen)
{
win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN;