Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3524 from orestisf1993/regress-randr
Browse files Browse the repository at this point in the history
randr.c: Fix regression with focusing NULL container
  • Loading branch information
Airblader committed Nov 15, 2018
2 parents 299e9b9 + a84b30f commit 8ad84f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/randr.c
Expand Up @@ -974,10 +974,12 @@ void randr_disable_output(Output *output) {
}
}

/* Restore focus after con_detach / con_attach */
DLOG("now focusing next = %p\n", next);
con_focus(next);
workspace_show(con_get_workspace(next));
/* Restore focus after con_detach / con_attach. next can be NULL, see #3523. */
if (next) {
DLOG("now focusing next = %p\n", next);
con_focus(next);
workspace_show(con_get_workspace(next));
}

/* 3: move the dock clients to the first output */
Con *child;
Expand Down

0 comments on commit 8ad84f0

Please sign in to comment.