Rename tree_close() to tree_close_internal().
It should be clear for callers of this function that this is an internal function that skips certain validations which might be important. Therefore we make it clear that this is an internal function by renaming it. relates to #1761
This commit is contained in:
@ -741,7 +741,7 @@ void randr_query_outputs(void) {
|
||||
if (current != next && TAILQ_EMPTY(&(current->focus_head))) {
|
||||
/* the workspace is empty and not focused, get rid of it */
|
||||
DLOG("Getting rid of current = %p / %s (empty, unfocused)\n", current, current->name);
|
||||
tree_close(current, DONT_KILL_WINDOW, false, false);
|
||||
tree_close_internal(current, DONT_KILL_WINDOW, false, false);
|
||||
continue;
|
||||
}
|
||||
DLOG("Detaching current = %p / %s\n", current, current->name);
|
||||
@ -783,7 +783,7 @@ void randr_query_outputs(void) {
|
||||
}
|
||||
|
||||
DLOG("destroying disappearing con %p\n", output->con);
|
||||
tree_close(output->con, DONT_KILL_WINDOW, true, false);
|
||||
tree_close_internal(output->con, DONT_KILL_WINDOW, true, false);
|
||||
DLOG("Done. Should be fine now\n");
|
||||
output->con = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user