mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed window resize
This commit is contained in:
parent
0880b217cb
commit
0ac789e48c
@ -336,9 +336,13 @@ wins_resize_all(void)
|
|||||||
int subwin_cols = 0;
|
int subwin_cols = 0;
|
||||||
|
|
||||||
if (window->layout->type == LAYOUT_SPLIT) {
|
if (window->layout->type == LAYOUT_SPLIT) {
|
||||||
ProfLayoutSplit *layout = (ProfLayoutSplit*)window;
|
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
|
||||||
if (layout->subwin) {
|
if (layout->subwin) {
|
||||||
|
if (window->type == WIN_CONSOLE) {
|
||||||
subwin_cols = win_roster_cols();
|
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->super.win, PAD_SIZE, cols - subwin_cols);
|
||||||
wresize(layout->subwin, PAD_SIZE, subwin_cols);
|
wresize(layout->subwin, PAD_SIZE, subwin_cols);
|
||||||
ui_roster();
|
ui_roster();
|
||||||
|
Loading…
Reference in New Issue
Block a user