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
next
Orestis Floros 2019-10-18 11:58:08 +03:00
parent 6011e245e9
commit 812507c4a1
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}