aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/gwin_frame.c')
-rw-r--r--src/gwin/gwin_frame.c2
1 files changed, 1 insertions, 1 deletions
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);