discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=334cf0062f35f9320a793f65cb34c52995840e4e

commit 334cf0062f35f9320a793f65cb34c52995840e4e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 11 12:02:00 2016 -0400

    ignore maximized+fullscreen windows when placing new clients
    
    this should improve perf and placement
    
    ref T3404
---
 src/bin/e_place.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/e_place.c b/src/bin/e_place.c
index 214cee2..eac6c49 100644
--- a/src/bin/e_place.c
+++ b/src/bin/e_place.c
@@ -256,6 +256,14 @@ e_place_desk_region_smart(E_Desk *desk, Eina_List 
*skiplist, int x, int y, int w
         if (eina_list_data_find(skiplist, ec)) continue;
 
         if (!((ec->sticky) || (ec->desk == desk))) continue;
+        if (ec->fullscreen) continue;
+        if (ec->maximized)
+          {
+             E_Maximize max = ec->maximized & E_MAXIMIZE_TYPE;
+
+             if (max == E_MAXIMIZE_FULLSCREEN) continue;
+             if (max & (E_MAXIMIZE_HORIZONTAL | E_MAXIMIZE_VERTICAL)) continue;
+          }
 
         bx = ec->x - desk->zone->x;
         by = ec->y - desk->zone->y;

-- 


Reply via email to