mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 15:26:21 +00:00
wins_show_subwin(): Add windows type test
Fix https://github.com/profanity-im/profanity/issues/1321
This commit is contained in:
@@ -742,6 +742,12 @@ wins_show_subwin(ProfWin *window)
|
|||||||
{
|
{
|
||||||
win_show_subwin(window);
|
win_show_subwin(window);
|
||||||
|
|
||||||
|
// only mucwin and console have occupants/roster subwin
|
||||||
|
if (window->type != WIN_MUC ||
|
||||||
|
window->type != WIN_CONSOLSE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ProfWin *current_win = wins_get_current();
|
ProfWin *current_win = wins_get_current();
|
||||||
win_refresh_with_subwin(current_win);
|
win_refresh_with_subwin(current_win);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user