devilhorns pushed a commit to branch master.

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

commit c1109dd25cfae418922ab554cb88fc01d3a3c514
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Sep 28 09:39:07 2015 -0400

    ecore-wl2: Add API function to return if a window is maximized
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        |  3 +++
 src/lib/ecore_wl2/ecore_wl2_window.c | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index a18df7d..ad16a2d 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -394,6 +394,9 @@ EAPI void ecore_wl2_window_transparent_set(Ecore_Wl2_Window 
*window, Eina_Bool t
  */
 EAPI void ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, 
int y, int w, int h);
 
+/* TODO: doxy */
+EAPI Eina_Bool ecore_wl2_window_maximized_get(Ecore_Wl2_Window *window);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index bcd10d7..4c4781d 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -581,3 +581,14 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window 
*window, int x, int y, int w
    wl_surface_set_opaque_region(window->surface, region);
    wl_region_destroy(region);
 }
+
+EAPI Eina_Bool
+ecore_wl2_window_maximized_get(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
+
+   if (window->type == ECORE_WL2_WINDOW_TYPE_MAXIMIZED)
+     return EINA_TRUE;
+
+   return EINA_FALSE;
+}

-- 


Reply via email to