forked from enlightenment/enlightenment
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:
parent
e781a9b68e
commit
e5300734dc
|
@ -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;
|
||||
}
|
||||
}
|
||||
return bd;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue