Bugfix: randr: Don’t close container if it was not initialized before

This commit is contained in:
Michael Stapelberg 2011-01-06 14:35:04 +01:00
parent 2312187439
commit 55b6d31e4a
1 changed files with 29 additions and 27 deletions

View File

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