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
This commit is contained in:
parent
6011e245e9
commit
812507c4a1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue