Bugfix: randr: Don’t close container if it was not initialized before
This commit is contained in:
parent
2312187439
commit
55b6d31e4a
|
@ -534,6 +534,7 @@ void randr_query_outputs() {
|
|||
if ((first = get_first_output()) == NULL)
|
||||
die("No usable outputs available\n");
|
||||
|
||||
if (output->con != NULL) {
|
||||
/* We need to move the workspaces from the disappearing output to the first output */
|
||||
/* 1: Get the con to focus next, if the disappearing ws is focused */
|
||||
Con *next = NULL;
|
||||
|
@ -564,6 +565,7 @@ void randr_query_outputs() {
|
|||
tree_close(output->con, false, true);
|
||||
DLOG("Done. Should be fine now\n");
|
||||
output->con = NULL;
|
||||
}
|
||||
|
||||
output->to_be_disabled = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue