discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9b420c8d69dcbd2452884b96866c40ba8a5b2c51

commit 9b420c8d69dcbd2452884b96866c40ba8a5b2c51
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon May 18 13:19:33 2015 -0400

    force xwindow stacking to obey nocomp policy and stack below current nocomp
    
    fix T2277
---
 src/bin/e_comp_x.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 15a783e..0ad008c 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -619,17 +619,22 @@ _e_comp_x_client_stack(E_Client *ec)
    ecore_x_window_shadow_tree_flush();
 
    /* try stacking below */
-   ec2 = ec;
-   do
+   if (e_comp->nocomp_ec && (ec != e_comp->nocomp_ec))
+     win = _e_comp_x_client_window_get(e_comp->nocomp_ec);
+   else
      {
-        ec2 = e_client_above_get(ec2);
-        if (ec2 && (e_client_is_stacking(ec2) || ((!ec2->override) || 
ec2->internal)))
+        ec2 = ec;
+        do
           {
-             if (ec2->layer != ec->layer) break;
-             if (ec2->comp_data->need_reparent && 
(!ec2->comp_data->reparented)) continue;
-             win = _e_comp_x_client_window_get(ec2);
-          }
-     } while (ec2 && (!win));
+             ec2 = e_client_above_get(ec2);
+             if (ec2 && (e_client_is_stacking(ec2) || ((!ec2->override) || 
ec2->internal)))
+               {
+                  if (ec2->layer != ec->layer) break;
+                  if (ec2->comp_data->need_reparent && 
(!ec2->comp_data->reparented)) continue;
+                  win = _e_comp_x_client_window_get(ec2);
+               }
+          } while (ec2 && (!win));
+     }
 
    /* try stacking above */
    if (!win)

-- 


Reply via email to