Introduce output_primary_name function
Currently simply returns output->name, but this will make it easier to change how output names are stored in the following commits. Also replace reading output->name with invocations of output_primary_name. Code which writes output->name is unchanged. Done using a mostly mechanical replacement of output->name to output_primary_name(output).
This commit is contained in:
@ -1264,7 +1264,7 @@ void con_move_to_output(Con *con, Output *output) {
|
||||
Con *ws = NULL;
|
||||
GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child));
|
||||
assert(ws != NULL);
|
||||
DLOG("Moving con %p to output %s\n", con, output->name);
|
||||
DLOG("Moving con %p to output %s\n", con, output_primary_name(output));
|
||||
con_move_to_workspace(con, ws, false, false, false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user