From 812507c4a10dab68ce4110547a8fe2d8dba5f572 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 18 Oct 2019 11:58:08 +0300 Subject: [PATCH] remanage_window: avoid crash when nc->window == NULL Temporary solution until we find the root cause. Not that it is a bad idea to check for NULL either way. Related to #3731 --- src/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manage.c b/src/manage.c index df0cd934..8b56fd6e 100644 --- a/src/manage.c +++ b/src/manage.c @@ -698,7 +698,7 @@ out: Con *remanage_window(Con *con) { Match *match; Con *nc = con_for_window(croot, con->window, &match); - if (nc == NULL || nc->window == con->window) { + if (nc == NULL || nc->window == NULL || nc->window == con->window) { run_assignments(con->window); return con; }