englebass pushed a commit to branch master.

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

commit e5300734dcbc1b7e0c94f335aae02b12f58487c6
Author: Sebastian Dransfeld <s...@tango.flipp.net>
Date:   Sat Dec 7 22:28:01 2013 +0100

    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
---
 src/bin/e_border.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 0fdcd9e..00ff2a7 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -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;
 }

-- 


Reply via email to