diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-09 20:38:43 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-09 20:38:43 +0100 |
commit | 0cbccc90ab323158aecb961b93954878693c1c90 (patch) | |
tree | f03387ecec5e84fcfe222595c0dafb0a7243b472 /cmd-select-layout.c | |
parent | 71d90c11dd0a90a4defd3d56843dfcb1170310f5 (diff) |
Set the window size as well as the layout size when using the preset layouts
and calculate the sizes correctly.
Diffstat (limited to 'cmd-select-layout.c')
-rw-r--r-- | cmd-select-layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-select-layout.c b/cmd-select-layout.c index d8fc1aeb..775d32c5 100644 --- a/cmd-select-layout.c +++ b/cmd-select-layout.c @@ -135,6 +135,7 @@ cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item) changed: free(oldlayout); + recalculate_sizes(); server_redraw_window(w); notify_window("window-layout-changed", w); return (CMD_RETURN_NORMAL); |