ecore_evas/wayland: Update withdrawn property, and inform state_changed.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 4 Dec 2013 20:50:19 +0000 (18:50 -0200)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 9 Dec 2013 10:26:24 +0000 (08:26 -0200)
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 8c02856..2d03700 100644 (file)
@@ -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