From 30a478c4fa375d999b998a8c1508c745e68e0845 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Mon, 7 Feb 2011 21:19:23 +0000 Subject: [PATCH] use convenience macro SVN revision: 56782 --- src/bin/e_border.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index 81491c312..d565be0d9 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -8398,8 +8398,8 @@ e_border_under_pointer_get(E_Desk *desk, * (because it will be closed shortly for example), skip */ if ((exclude) && (cbd == exclude)) continue; if ((desk) && (cbd->desk != desk)) continue; - if ((x < cbd->x) || (x > (cbd->x + cbd->w)) || - (y < cbd->y) || (y > (cbd->y + cbd->h))) continue; + if (!E_INSIDE(x, y, cbd->x, cbd->y, cbd->w, cbd->h)) + continue; /* If the layer is higher, the position of the window is higher * (always on top vs always below) */ if (!bd || (cbd->layer > bd->layer))