summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-27 17:15:57 +0000
committernicm <nicm>2021-08-27 17:15:57 +0000
commitfd756a150b43d319d08ac4117f34edef9e0438c4 (patch)
tree003f77b6051466412eba1fa0260b9e95c89e3923 /window.c
parent24636be42b4b0463afe5c72e1d982f28729a0579 (diff)
Allow control mode clients to set a hard limit on the window width and
height, GitHub issue 2594.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 584dbf9c..64d75d43 100644
--- a/window.c
+++ b/window.c
@@ -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;