summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-09-22 06:44:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-09-22 06:44:53 +0000
commita4171ce688e4fb8fc1cdecc09855474d30398f73 (patch)
tree902dd7caf343b47befca56498c132d5bd70d1883 /usr.bin
parent70dd98ab60af24993997abcb78bbce47d54cab64 (diff)
Resize screen to the correct size (borders need to be taken off).
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/popup.c b/usr.bin/tmux/popup.c
index 9e23b503c9b..79fc6709881 100644
--- a/usr.bin/tmux/popup.c
+++ b/usr.bin/tmux/popup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: popup.c,v 1.19 2020/05/16 16:35:13 nicm Exp $ */
+/* $OpenBSD: popup.c,v 1.20 2020/09/22 06:44:52 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -262,7 +262,7 @@ popup_handle_drag(struct client *c, struct popup_data *pd,
pd->sx = m->x - pd->px;
pd->sy = m->y - pd->py;
- screen_resize(&pd->s, pd->sx, pd->sy, 0);
+ screen_resize(&pd->s, pd->sx - 2, pd->sy - 2, 0);
if (pd->ictx == NULL)
popup_write_screen(c, pd);
else if (pd->job != NULL)