From cb3fcca0e7f6af0dd095a0ea5ec0f2360ab4269d Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 4 Dec 2013 18:50:19 -0200 Subject: [PATCH] ecore_evas/wayland: Update withdrawn property, and inform state_changed. --- .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 7 +++++++ 1 file changed, 7 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 8c02856469..2d037002da 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 @@ -1484,10 +1484,17 @@ _ecore_evas_wl_common_withdrawn_set(Ecore_Evas *ee, int val) { LOGFN(__FILE__, __LINE__, __FUNCTION__); + val = !!val; + + if (ee->prop.withdrawn == val) + return; + + ee->prop.withdrawn = val; if (val) ecore_evas_hide(ee); else ecore_evas_show(ee); + _ecore_evas_wl_common_state_update(ee); } void