devilhorns pushed a commit to branch master.

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

commit 42b082fe36d9888864356666ba77e8f46fa99657
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Aug 8 09:53:52 2017 -0400

    ecore-wl2: Add support for Window Iconify State Change
    
    This patch adds support for the Window Iconify State Change event
    structure and the ecore event type to support it.
    
    '#divergence'
    
    @feature
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h | 8 ++++++++
 src/lib/ecore_wl2/ecore_wl2.c | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index eab1bfe3e7..06e5c84ac7 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -315,6 +315,13 @@ typedef struct _Ecore_Wl2_Event_Window_Deactivate
    unsigned int event_win;
 } Ecore_Wl2_Event_Window_Deactivate;
 
+typedef struct _Ecore_Wl2_Event_Window_Iconify_State_Change
+{
+   unsigned int win;
+   unsigned int iconified;
+   unsigned int force;
+} Ecore_Wl2_Event_Window_Iconify_State_Change;
+
 typedef enum _Ecore_Wl2_Window_Type
 {
    ECORE_WL2_WINDOW_TYPE_NONE,
@@ -395,6 +402,7 @@ EAPI extern int ECORE_WL2_EVENT_WINDOW_SHOW; /** @since 
1.20 */
 EAPI extern int ECORE_WL2_EVENT_WINDOW_HIDE; /** @since 1.20 */
 EAPI extern int ECORE_WL2_EVENT_WINDOW_ACTIVATE; /** @since 1.20 */
 EAPI extern int ECORE_WL2_EVENT_WINDOW_DEACTIVATE; /** @since 1.20 */
+EAPI extern int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE; /** @since 1.21 */
 
 /**
  * @file
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 645012f4e4..ba22eb1986 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -52,6 +52,7 @@ EAPI int ECORE_WL2_EVENT_WINDOW_SHOW = 0;
 EAPI int ECORE_WL2_EVENT_WINDOW_HIDE = 0;
 EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0;
 EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0;
+EAPI int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = 0;
 
 EAPI int _ecore_wl2_event_window_www = -1;
 EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -134,6 +135,7 @@ ecore_wl2_init(void)
         ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new();
         ECORE_WL2_EVENT_WINDOW_ACTIVATE = ecore_event_type_new();
         ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new();
+        ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = ecore_event_type_new();
      }
    if (!no_session_recovery)
      no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -203,7 +205,8 @@ ecore_wl2_shutdown(void)
                           ECORE_WL2_EVENT_WINDOW_SHOW,
                           ECORE_WL2_EVENT_WINDOW_HIDE,
                           ECORE_WL2_EVENT_WINDOW_ACTIVATE,
-                          ECORE_WL2_EVENT_WINDOW_DEACTIVATE);
+                          ECORE_WL2_EVENT_WINDOW_DEACTIVATE,
+                          ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE);
 
    /* shutdown Ecore_Event */
    ecore_event_shutdown();

-- 


Reply via email to