Unbreak ecore_evas wayland engines:
authorChris Michael <devilhorns@comcast.net>
Mon, 13 Jan 2014 07:52:24 +0000 (07:52 +0000)
committerChris Michael <devilhorns@comcast.net>
Mon, 13 Jan 2014 07:52:24 +0000 (07:52 +0000)
Val variable is not declared here. Use the variable 'on' which was
passed in to this function.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 738721a34f281545d6cd6d2ecf4208d0268c037b..647a5db75ea7003d0abc0198da3676d317fee726 100644 (file)
@@ -1484,16 +1484,15 @@ _ecore_evas_wl_common_withdrawn_set(Ecore_Evas *ee, Eina_Bool on)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
-   val = !!val;
-
-   if (ee->prop.withdrawn == on)
-     return;
+   if (ee->prop.withdrawn == on) return;
 
    ee->prop.withdrawn = on;
-   if (val)
+
+   if (on)
      ecore_evas_hide(ee);
    else
      ecore_evas_show(ee);
+
    _ecore_evas_wl_common_state_update(ee);
 }