devilhorns pushed a commit to branch master.

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

commit 522ee10b45d9b2f34dff46ac3978c604aca9a37f
Author: Chris Michael <[email protected]>
Date:   Tue Jun 13 12:56:24 2017 -0400

    ecore-evas-wayland: Add support for setting auxiliary hints
    
    This patch adds function pointers to the Wayland Interface that can be
    used for supporting auxiliary hints on a given window
    
    @feature
    
    Signed-off-by: Chris Michael <[email protected]>
---
 .../engines/wayland/ecore_evas_wayland_common.c    | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c 
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 362aef909f..ac1481ec2f 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -1813,6 +1813,36 @@ _ecore_evas_wayland_window_get(const Ecore_Evas *ee)
 
 /* } */
 
+static void
+_ecore_evas_wayland_aux_hint_add(Ecore_Evas *ee, int id, const char *hint, 
const char *val)
+{
+   Ecore_Evas_Engine_Wl_Data *wdata;
+
+   if (!ee) return;
+   wdata = ee->engine.data;
+   ecore_wl2_window_aux_hint_add(wdata->win, id, hint, val);
+}
+
+static void
+_ecore_evas_wayland_aux_hint_change(Ecore_Evas *ee, int id, const char *val)
+{
+   Ecore_Evas_Engine_Wl_Data *wdata;
+
+   if (!ee) return;
+   wdata = ee->engine.data;
+   ecore_wl2_window_aux_hint_change(wdata->win, id, val);
+}
+
+static void
+_ecore_evas_wayland_aux_hint_del(Ecore_Evas *ee, int id)
+{
+   Ecore_Evas_Engine_Wl_Data *wdata;
+
+   if (!ee) return;
+   wdata = ee->engine.data;
+   ecore_wl2_window_aux_hint_del(wdata->win, id);
+}
+
 static Ecore_Evas_Interface_Wayland *
 _ecore_evas_wl_interface_new(void)
 {
@@ -1829,6 +1859,9 @@ _ecore_evas_wl_interface_new(void)
    /* iface->pointer_set = _ecore_evas_wayland_pointer_set; */
    iface->type_set = _ecore_evas_wayland_type_set;
    iface->window2_get = _ecore_evas_wayland_window_get;
+   iface->aux_hint_add = _ecore_evas_wayland_aux_hint_add;
+   iface->aux_hint_change = _ecore_evas_wayland_aux_hint_change;
+   iface->aux_hint_del = _ecore_evas_wayland_aux_hint_del;
 
    return iface;
 }

-- 


Reply via email to