From dc191668fe18893e112b2784c2412d89d3ff74ec Mon Sep 17 00:00:00 2001 From: o9000 Date: Mon, 28 Mar 2016 20:26:47 +0200 Subject: [PATCH] Revert 580c3e76 (issue #572) --- src/util/area.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/area.c b/src/util/area.c index 03f553e..c69b956 100644 --- a/src/util/area.c +++ b/src/util/area.c @@ -664,9 +664,9 @@ gboolean full_width_area_is_under_mouse(void *obj, int x, int y) return a->_is_under_mouse(a, x, y); if (panel_horizontal) - return (x >= a->posx || area_is_first(a)) && (x <= a->posx + a->width || area_is_last(a)); + return (x >= a->posx) && (x <= a->posx + a->width); else - return (y >= a->posy || area_is_first(a)) && (y <= a->posy + a->height || area_is_last(a)); + return (y >= a->posy) && (y <= a->posy + a->height); } Area *find_area_under_mouse(void *root, int x, int y)