From: devilhorns Date: Wed, 4 Jan 2012 09:28:36 +0000 (+0000) Subject: Ecore_Evas (wayland): Implement EE functions for iconified & maximized. X-Git-Tag: 2.0_alpha~86^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=628fa5b593c8484692c8402f96fede6afd3d9eac;p=framework%2Fuifw%2Fecore.git Ecore_Evas (wayland): Implement EE functions for iconified & maximized. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@66861 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_wayland_shm.c b/src/lib/ecore_evas/ecore_evas_wayland_shm.c index 5d25609..cb8808b 100644 --- a/src/lib/ecore_evas/ecore_evas_wayland_shm.c +++ b/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) {