follow on from last week - ee state not quite being handled right in
authorCarsten Haitzler <raster@rasterman.com>
Mon, 14 Jan 2013 09:45:05 +0000 (09:45 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 14 Jan 2013 09:45:05 +0000 (09:45 +0000)
x11 when being iconified. missed commenting it out. fix and handle
initial state too.

SVN revision: 82747

src/modules/ecore_evas/engines/x/ecore_evas_x.c

index 56cb3fd..dba60a7 100644 (file)
@@ -2661,7 +2661,8 @@ _ecore_evas_x_iconified_set(Ecore_Evas *ee, int on)
    Ecore_Evas_Engine_Data_X11 *edata = ee->engine.data;
 
    if (ee->prop.iconified == on) return;
-   ee->prop.iconified = on;
+   if (((ee->should_be_visible) && (!ee->visible)) || (!ee->visible))
+     ee->prop.iconified = on;
    _ecore_evas_x_hints_update(ee);
    if (on)
      ecore_x_icccm_iconic_request_send(ee->prop.window, edata->win_root);