Find correct border under pointer

Previously we would find the first border and then break. Now we find
the border with the highest layer, as the code intended.

Fixes CID 1039952
This commit is contained in:
Sebastian Dransfeld 2013-12-07 22:28:01 +01:00
parent e781a9b68e
commit e5300734dc
1 changed files with 1 additions and 4 deletions

View File

@ -9948,10 +9948,7 @@ _e_border_under_pointer_helper(E_Desk *desk, E_Border *exclude, int x, int y)
/* If the layer is higher, the position of the window is higher
* (always on top vs always below) */
if (!bd || (cbd->layer > bd->layer))
{
bd = cbd;
break;
}
bd = cbd;
}
return bd;
}