antognolli pushed a commit to branch ecore-1.7.

commit a41a88806363d4bd681858b7da25c8437b88aa0f
Author: Rafael Antognolli <[email protected]>
Date:   Mon Apr 29 15:06:02 2013 -0300

    ecore_evas/x: Backport fixes on window properties handling.
    
    Backported:
     - ede2faa1aa941080719f9dbb12ef41615e0ed719
     - 006e73ec415aa011d2d6f2b657ff7ba14ac6b2b7
---
 src/lib/ecore_evas/ecore_evas_x.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_evas/ecore_evas_x.c 
b/src/lib/ecore_evas/ecore_evas_x.c
index 1aa46a2..75b483c 100644
--- a/src/lib/ecore_evas/ecore_evas_x.c
+++ b/src/lib/ecore_evas/ecore_evas_x.c
@@ -2635,7 +2635,8 @@ static void
 _ecore_evas_x_iconified_set(Ecore_Evas *ee, int on)
 {
    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, ee->engine.x.win_root);
@@ -2657,7 +2658,7 @@ static void
 _ecore_evas_x_withdrawn_set(Ecore_Evas *ee, int withdrawn)
 {
    if (ee->prop.withdrawn == withdrawn) return;
-   ee->prop.withdrawn = withdrawn;
+   // ee->prop.withdrawn = withdrawn;
    _ecore_evas_x_hints_update(ee);
 }
 
@@ -2671,7 +2672,7 @@ _ecore_evas_x_sticky_set(Ecore_Evas *ee, int sticky)
     * property change event.
     * ee->prop.sticky = sticky;
     */
-   ee->engine.x.state.sticky = sticky;
+   // ee->engine.x.state.sticky = sticky;
    if (ee->should_be_visible)
      ecore_x_netwm_state_request_send(ee->prop.window, ee->engine.x.win_root,
                                       ECORE_X_WINDOW_STATE_STICKY, -1, sticky);
@@ -2739,7 +2740,7 @@ _ecore_evas_x_maximized_set(Ecore_Evas *ee, int on)
    if (ee->prop.maximized == on) return;
    ee->engine.x.state.maximized_h = 1;
    ee->engine.x.state.maximized_v = 1;
-   ee->prop.maximized = on;
+   // ee->prop.maximized = on;
    if (ee->should_be_visible)
      {
         ecore_x_netwm_state_request_send(ee->prop.window, 
ee->engine.x.win_root,

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to