aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-07 13:33:00 +0000
committernicm <nicm>2020-04-07 13:33:00 +0000
commita2efdb21a84947fc8a84ea886d664bf428a0230a (patch)
tree89480fd4522cf094f904d707eb4194c39d656685 /popup.c
parent77b827f879e4dc296996b3f4345c38a7a57caf48 (diff)
downloadrtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.tar.gz
rtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.tar.bz2
rtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.zip
Limit size to 1x1 (total size 3x3).
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/popup.c b/popup.c
index 299d4e76..d23c2001 100644
--- a/popup.c
+++ b/popup.c
@@ -200,9 +200,9 @@ popup_handle_drag(struct client *c, struct popup_data *pd,
pd->dy = m->y - pd->py;
server_redraw_client(c);
} else if (pd->dragging == SIZE) {
- if (m->x < pd->px + 2)
+ if (m->x < pd->px + 3)
return;
- if (m->y < pd->py + 2)
+ if (m->y < pd->py + 3)
return;
pd->sx = m->x - pd->px;
pd->sy = m->y - pd->py;