From bad56b50623837644d0888cf8e5b059111b65ac2 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 22 Apr 2020 14:03:29 +0200 Subject: [PATCH] wins_show_subwin(): Add windows type test Fix https://github.com/profanity-im/profanity/issues/1321 --- src/ui/window_list.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/window_list.c b/src/ui/window_list.c index 7918132a..53e38e34 100644 --- a/src/ui/window_list.c +++ b/src/ui/window_list.c @@ -742,6 +742,12 @@ wins_show_subwin(ProfWin *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(); win_refresh_with_subwin(current_win); }