summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-27 17:15:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-27 17:15:58 +0000
commitb9b52f488ddb6092e0930ae75f736ff92ab99f35 (patch)
tree5566b171ce6406ac0019e387bba566d549f155ae /usr.bin/tmux/window.c
parent18ce8447111681415dfd982ff6c5eb4bde9b768e (diff)
Allow control mode clients to set a hard limit on the window width and
height, GitHub issue 2594.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index a83f1302265..4d0c9e2bcc2 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.275 2021/08/20 17:36:03 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.276 2021/08/27 17:15:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -318,6 +318,8 @@ window_create(u_int sx, u_int sy, u_int xpixel, u_int ypixel)
w->sx = sx;
w->sy = sy;
+ w->manual_sx = sx;
+ w->manual_sy = sy;
w->xpixel = xpixel;
w->ypixel = ypixel;