From a08f9d42fc9ef713a10e2bbc8362b9c697d4304e Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 29 Apr 2015 18:32:12 +1000 Subject: [PATCH] Fix a bug in detecting the button area in a frame window --- src/gwin/gwin_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gwin/gwin_frame.c b/src/gwin/gwin_frame.c index 8811dce6..2586fa98 100644 --- a/src/gwin/gwin_frame.c +++ b/src/gwin/gwin_frame.c @@ -58,7 +58,7 @@ static void forceFrameRedraw(GWidgetObject *gw) { coord_t pos; // We must be clicking on the frame button area to be of interest - if (y < BUTTON_T && y >= BUTTON_T+BUTTON_Y) + if (y < BUTTON_T || y >= BUTTON_T+BUTTON_Y) return; pos = gw->g.width - (BORDER_R+BUTTON_X);