illume2: Fix layer to position map
authorSebastian Dransfeld <sd@tango.flipp.net>
Tue, 2 Oct 2012 10:26:10 +0000 (10:26 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Tue, 2 Oct 2012 10:26:10 +0000 (10:26 +0000)
There is a bug here somewhere. In _policy_border_show_below we search
only the layers _above_ the window?!?

SVN revision: 77298

src/modules/illume2/policies/illume/policy.c

index ad081ba87d078d6f52db39d58558e22f0ad8dfef..575c5c8718ca26007365884491f6ab306b795f04 100644 (file)
@@ -132,7 +132,7 @@ _policy_border_hide_above(E_Border *bd)
 
    /* determine layering position */
    pos = (bd->layer / 50);
-   if (pos > 10) pos = 10;
+   if (pos >= 10) return;
 
    /* Find the windows above this one */
    for (i = (pos + 1); i < 11; i++)
@@ -169,6 +169,7 @@ _policy_border_hide_below(E_Border *bd)
 
    /* determine layering position */
    pos = (bd->layer / 50);
+   if (pos == 0) return;
    if (pos > 10) pos = 10;
 
    /* Find the windows below this one */