From ce688f6737dd972d919da80f2f5870372cd08aab Mon Sep 17 00:00:00 2001 From: MarcoPolo-PasTonMolo Date: Sun, 2 Apr 2023 17:48:51 +0300 Subject: Fix empty window after reconnect Sometimes after a reconnect the current window would get cleared. This was a deliberate change to fix the profanity window looking all garbled up after providing the passphrase for a gpg key using pinentry-curses. Fixes https://github.com/profanity-im/profanity/issues/1556 --- src/event/server_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event') diff --git a/src/event/server_events.c b/src/event/server_events.c index eb3e96e7..c1f11332 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -160,7 +160,7 @@ sv_ev_roster_received(void) // Redraw the screen after entry of the PGP secret key, but not init ProfWin* win = wins_get_current(); char* theme = prefs_get_string(PREF_THEME); - win_clear(win); + win_redraw(win); theme_init(theme); g_free(theme); ui_resize(); -- cgit 1.4.1-2-gfad0