From 44b060ce171111fe3433f13728663bac642a19d3 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 27 Aug 2019 12:42:20 +0200 Subject: [PATCH] fix crash on startup when resizing before active_win --- src/fe-text/mainwindows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 051c63ae..711daf0a 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -829,7 +829,7 @@ void mainwindows_resize(int width, int height) } /* if we lost our active mainwin, get a new one */ - if (active_mainwin == NULL && !quitting) { + if (active_mainwin == NULL && active_win != NULL && !quitting) { active_mainwin = WINDOW_MAIN(active_win); window_set_active(active_mainwin->active); }