summaryrefslogtreecommitdiffstats
path: root/cmd-resize-window.c
diff options
context:
space:
mode:
authornicm <nicm>2019-09-23 15:41:11 +0000
committernicm <nicm>2019-09-23 15:41:11 +0000
commit77deef733bfc547325d7c6db3e0274b1c52281b9 (patch)
treef6fd5b6b2f996679ed16a1a451b39a6f2e330980 /cmd-resize-window.c
parent647887b794c00285047aa54ac0d44ae50c7847d7 (diff)
Use the correct size for new windows when window-size is latest,
reported by Vamsi Krishna Avula in GitHub issue 1917.
Diffstat (limited to 'cmd-resize-window.c')
-rw-r--r--cmd-resize-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-resize-window.c b/cmd-resize-window.c
index d780b6ee..c5a7c5a1 100644
--- a/cmd-resize-window.c
+++ b/cmd-resize-window.c
@@ -98,9 +98,9 @@ cmd_resize_window_exec(struct cmd *self, struct cmdq_item *item)
sy += adjust;
if (args_has(args, 'A'))
- default_window_size(s, w, &sx, &sy, WINDOW_SIZE_LARGEST);
+ default_window_size(NULL, s, w, &sx, &sy, WINDOW_SIZE_LARGEST);
else if (args_has(args, 'a'))
- default_window_size(s, w, &sx, &sy, WINDOW_SIZE_SMALLEST);
+ default_window_size(NULL, s, w, &sx, &sy, WINDOW_SIZE_SMALLEST);
options_set_number(w->options, "window-size", WINDOW_SIZE_MANUAL);
resize_window(w, sx, sy);