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:
@ -388,7 +388,7 @@ static void handle_configure_request(xcb_configure_request_event_t *event) {
|
||||
Con *current_output = con_get_output(con);
|
||||
Output *target = get_output_containing(x, y);
|
||||
if (target != NULL && current_output != target->con) {
|
||||
DLOG("Dock client is requested to be moved to output %s, moving it there.\n", target->name);
|
||||
DLOG("Dock client is requested to be moved to output %s, moving it there.\n", output_primary_name(target));
|
||||
Match *match;
|
||||
Con *nc = con_for_window(target->con, con->window, &match);
|
||||
DLOG("Dock client will be moved to container %p.\n", nc);
|
||||
|
Reference in New Issue
Block a user