aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-06-13 12:56:24 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-13 12:57:29 -0400
commit522ee10b45d9b2f34dff46ac3978c604aca9a37f (patch)
tree9f6ec91427c2784c218ab97291618d98a1d70e11
parentecore-evas: Fix return value in ecore_evas_aux_hint_val_set function (diff)
downloadefl-522ee10b45d9b2f34dff46ac3978c604aca9a37f.tar.gz
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 <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c33
1 files changed, 33 insertions, 0 deletions
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;
}