devilhorns pushed a commit to branch master.

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

commit c23a0d080d495f1c83393702bbad30f655c00f4b
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Jun 9 09:36:17 2017 -0400

    ecore-wl2: Add API to set if an application has rotation a window
    
    @feature
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 11 +++++++++++
 src/lib/ecore_wl2/ecore_wl2_private.h |  1 +
 src/lib/ecore_wl2/ecore_wl2_window.c  |  7 +++++++
 3 files changed, 19 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index bd832b35c2..34bf7574eb 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -996,6 +996,17 @@ EAPI void 
ecore_wl2_window_wm_rotation_supported_set(Ecore_Wl2_Window *window, E
 EAPI Eina_Bool ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window 
*window);
 
 /**
+ * Set if an application has set window rotation
+ *
+ * @param window
+ * @param set
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI void ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, 
Eina_Bool set);
+
+/**
  * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
  * @ingroup Ecore_Wl2_Group
  *
diff --git a/src/lib/ecore_wl2/ecore_wl2_private.h 
b/src/lib/ecore_wl2/ecore_wl2_private.h
index 8c6ef6a6d0..9687b7f22d 100644
--- a/src/lib/ecore_wl2/ecore_wl2_private.h
+++ b/src/lib/ecore_wl2/ecore_wl2_private.h
@@ -189,6 +189,7 @@ struct _Ecore_Wl2_Window
    struct
      {
         Eina_Bool supported : 1;
+        Eina_Bool app_set : 1;
      } wm_rot;
 };
 
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index ef5da9d86f..9b82a2fdf4 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1227,3 +1227,10 @@ 
ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *window)
    EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
    return window->wm_rot.supported;
 }
+
+EAPI void
+ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set)
+{
+   EINA_SAFETY_ON_NULL_RETURN(window);
+   window->wm_rot.app_set = set;
+}

-- 


Reply via email to