From a2efdb21a84947fc8a84ea886d664bf428a0230a Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 7 Apr 2020 13:33:00 +0000 Subject: Limit size to 1x1 (total size 3x3). --- popup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'popup.c') 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; -- cgit