mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed /occupants hide
This commit is contained in:
parent
39aae7f548
commit
79d4cbe967
@ -254,14 +254,21 @@ win_show_subwin(ProfWin *window)
|
|||||||
int cols = getmaxx(stdscr);
|
int cols = getmaxx(stdscr);
|
||||||
int subwin_cols = 0;
|
int subwin_cols = 0;
|
||||||
|
|
||||||
if (window->layout->type == LAYOUT_SPLIT) {
|
if (window->layout->type != LAYOUT_SPLIT) {
|
||||||
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
|
return;
|
||||||
subwin_cols = win_roster_cols();
|
|
||||||
layout->subwin = newpad(PAD_SIZE, subwin_cols);
|
|
||||||
wbkgd(layout->subwin, theme_attrs(THEME_TEXT));
|
|
||||||
wresize(layout->super.win, PAD_SIZE, cols - subwin_cols);
|
|
||||||
win_redraw(window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window->type == WIN_MUC) {
|
||||||
|
subwin_cols = win_occpuants_cols();
|
||||||
|
} else if (window->type == WIN_CONSOLE) {
|
||||||
|
subwin_cols = win_roster_cols();
|
||||||
|
}
|
||||||
|
|
||||||
|
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
|
||||||
|
layout->subwin = newpad(PAD_SIZE, subwin_cols);
|
||||||
|
wbkgd(layout->subwin, theme_attrs(THEME_TEXT));
|
||||||
|
wresize(layout->super.win, PAD_SIZE, cols - subwin_cols);
|
||||||
|
win_redraw(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user