diff options
author | nicm <nicm> | 2019-09-19 09:02:30 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-09-19 09:02:30 +0000 |
commit | 647887b794c00285047aa54ac0d44ae50c7847d7 (patch) | |
tree | c173a9c9f68dd40248df0b0685189241c074ec4d /cmd-respawn-window.c | |
parent | d01847735903496c25e1d24375b911edffa56ef8 (diff) | |
download | rtmux-647887b794c00285047aa54ac0d44ae50c7847d7.tar.gz rtmux-647887b794c00285047aa54ac0d44ae50c7847d7.tar.bz2 rtmux-647887b794c00285047aa54ac0d44ae50c7847d7.zip |
Add a "latest" window-size option which tries to size windows based on
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r-- | cmd-respawn-window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index aec22912..497e401e 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -59,6 +59,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmdq_item *item) sc.item = item; sc.s = s; sc.wl = wl; + sc.c = cmd_find_client(item, NULL, 1); sc.name = NULL; sc.argc = args->argc; |