illume2: Fix layer to position map

There is a bug here somewhere. In _policy_border_show_below we search
only the layers _above_ the window?!?

SVN revision: 77298
This commit is contained in:
Sebastian Dransfeld 2012-10-02 10:26:10 +00:00
parent 6608e80725
commit 7e76afdd0a
1 changed files with 2 additions and 1 deletions

View 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 */