ecore-wayland: return only the relevant state value for maximize/fullscreen
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 17 Nov 2015 23:23:07 +0000 (18:23 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 17 Nov 2015 23:23:07 +0000 (18:23 -0500)
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

src/lib/ecore_wayland/ecore_wl_window.c

index a261d78..47f4172 100644 (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