From 1dec455b38114a79e0e8422267acd7c312316447 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 4 Jan 2012 09:28:36 +0000 Subject: [PATCH] Ecore_Evas (wayland): Implement EE functions for iconified & maximized. SVN revision: 66861 --- .../lib/ecore_evas/ecore_evas_wayland_shm.c | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c index 5d25609166..cb8808be7c 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c @@ -67,6 +67,8 @@ static void _ecore_evas_wl_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, static void _ecore_evas_wl_object_cursor_del(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__); static void _ecore_evas_wl_layer_set(Ecore_Evas *ee, int layer); static void _ecore_evas_wl_focus_set(Ecore_Evas *ee, int focus __UNUSED__); +static void _ecore_evas_wl_iconified_set(Ecore_Evas *ee, int iconify); +static void _ecore_evas_wl_maximized_set(Ecore_Evas *ee, int max); static int _ecore_evas_wl_render(Ecore_Evas *ee); static void _ecore_evas_wl_screen_geometry_get(const Ecore_Evas *ee __UNUSED__, int *x, int *y, int *w, int *h); static void _ecore_evas_wl_buffer_new(Ecore_Evas *ee, void **dest); @@ -134,10 +136,10 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func = _ecore_evas_wl_object_cursor_set, _ecore_evas_wl_layer_set, _ecore_evas_wl_focus_set, - NULL, // func iconified set + _ecore_evas_wl_iconified_set, NULL, // func borderless set NULL, // func override set - NULL, // func maximized set + _ecore_evas_wl_maximized_set, NULL, // func fullscreen set NULL, // func avoid_damage set NULL, // func withdrawn set @@ -765,6 +767,28 @@ _ecore_evas_wl_focus_set(Ecore_Evas *ee, int focus __UNUSED__) wl_shell_surface_set_toplevel(ee->engine.wl.shell_surface); } +static void +_ecore_evas_wl_iconified_set(Ecore_Evas *ee, int iconify) +{ + LOGFN(__FILE__, __LINE__, __FUNCTION__); + + if (!ee) return; + if (ee->prop.iconified == iconify) return; + ee->prop.iconified = iconify; + /* FIXME: Implement this in Wayland someshow */ +} + +static void +_ecore_evas_wl_maximized_set(Ecore_Evas *ee, int max) +{ + LOGFN(__FILE__, __LINE__, __FUNCTION__); + + if (!ee) return; + if (ee->prop.maximized == max) return; + ee->prop.maximized = max; + /* FIXME: Implement this in Wayland someshow */ +} + static int _ecore_evas_wl_render(Ecore_Evas *ee) {