devilhorns pushed a commit to branch master.

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

commit ecd8808918900e70c5196da4db9b8bdbcaa2cb50
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Sep 28 11:37:11 2015 -0400

    ecore-wl2: Add API function to return if a window is iconified
    
    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 | 8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 6c51208..87424ed 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -420,6 +420,9 @@ EAPI void ecore_wl2_window_geometry_get(Ecore_Wl2_Window 
*window, int *x, int *y
 /* TODO: doxy */
 EAPI void ecore_wl2_window_geometry_set(Ecore_Wl2_Window *window, int x, int 
y, int w, int h);
 
+/* TODO: doxy */
+EAPI Eina_Bool ecore_wl2_window_iconified_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 77e83ed..19bc7d2 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -730,3 +730,11 @@ ecore_wl2_window_geometry_set(Ecore_Wl2_Window *window, 
int x, int y, int w, int
    if (window->xdg_surface)
      xdg_surface_set_window_geometry(window->xdg_surface, x, y, w, h);
 }
+
+EAPI Eina_Bool
+ecore_wl2_window_iconified_get(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
+
+   return window->minimized;
+}

-- 


Reply via email to