diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-07 13:33:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-07 13:33:01 +0000 |
commit | 7950f8566688ac10e0532f2a4620111cefb4b90a (patch) | |
tree | 2e1bd0cd1b2960cb765c0a793ca33646041b67af /usr.bin/tmux/popup.c | |
parent | a583990af21d7da7ccce1c7f57d8953e9884af30 (diff) |
Limit size to 1x1 (total size 3x3).
Diffstat (limited to 'usr.bin/tmux/popup.c')
-rw-r--r-- | usr.bin/tmux/popup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/popup.c b/usr.bin/tmux/popup.c index e574b833f02..bd061cf0cf2 100644 --- a/usr.bin/tmux/popup.c +++ b/usr.bin/tmux/popup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: popup.c,v 1.6 2020/04/01 09:05:27 nicm Exp $ */ +/* $OpenBSD: popup.c,v 1.7 2020/04/07 13:33:00 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; |