discomfitor pushed a commit to branch efl-1.16.

http://git.enlightenment.org/core/efl.git/commit/?id=c1876763ee3b732adebe72a105b7cfb02d724d71

commit c1876763ee3b732adebe72a105b7cfb02d724d71
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Nov 17 15:57:45 2015 -0500

    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.mich...@samsung.com>
---
 src/lib/ecore_wayland/ecore_wl_window.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index 9751fa2..a261d78 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -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

-- 


Reply via email to