diff options
author | James Booth <boothj5@gmail.com> | 2014-12-16 21:18:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-16 21:18:32 +0000 |
commit | 0ac789e48c073bfbe0c964f4d84752458fcfc3c2 (patch) | |
tree | dbc6a66445c196abd8ee78217b34fda15c6dfdfa /src/ui | |
parent | 0880b217cbfa55d5fc4ef7decac37696e8d674f1 (diff) | |
download | profani-tty-0ac789e48c073bfbe0c964f4d84752458fcfc3c2.tar.gz |
Fixed window resize
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/windows.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c index 99c17252..4c5a7e1c 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -336,9 +336,13 @@ wins_resize_all(void) int subwin_cols = 0; if (window->layout->type == LAYOUT_SPLIT) { - ProfLayoutSplit *layout = (ProfLayoutSplit*)window; + ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout; if (layout->subwin) { - subwin_cols = win_roster_cols(); + if (window->type == WIN_CONSOLE) { + subwin_cols = win_roster_cols(); + } else if (window->type == WIN_MUC) { + subwin_cols = win_occpuants_cols(); + } wresize(layout->super.win, PAD_SIZE, cols - subwin_cols); wresize(layout->subwin, PAD_SIZE, subwin_cols); ui_roster(); |