use convenience macro

SVN revision: 56782
This commit is contained in:
Sebastian Dransfeld 2011-02-07 21:19:23 +00:00
parent 5de3622b76
commit 30a478c4fa
1 changed files with 2 additions and 2 deletions

View File

@ -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))