mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Update for swaywm/wlroots#1126
This commit is contained in:
parent
ebcdce457a
commit
63b4bf5000
85 changed files with 391 additions and 385 deletions
|
|
@ -49,7 +49,7 @@ struct sway_container *workspace_create(struct sway_container *output,
|
|||
output = get_workspace_initial_output(name);
|
||||
}
|
||||
|
||||
wlr_log(L_DEBUG, "Added workspace %s for output %s", name, output->name);
|
||||
wlr_log(WLR_DEBUG, "Added workspace %s for output %s", name, output->name);
|
||||
struct sway_container *workspace = container_create(C_WORKSPACE);
|
||||
|
||||
workspace->x = output->x;
|
||||
|
|
@ -107,7 +107,7 @@ static bool workspace_valid_on_output(const char *output_name,
|
|||
}
|
||||
|
||||
char *workspace_next_name(const char *output_name) {
|
||||
wlr_log(L_DEBUG, "Workspace: Generating new workspace name for output %s",
|
||||
wlr_log(WLR_DEBUG, "Workspace: Generating new workspace name for output %s",
|
||||
output_name);
|
||||
// Scan all workspace bindings to find the next available workspace name,
|
||||
// if none are found/available then default to a number
|
||||
|
|
@ -135,7 +135,7 @@ char *workspace_next_name(const char *output_name) {
|
|||
while (isspace(*_target)) {
|
||||
memmove(_target, _target+1, strlen(_target+1));
|
||||
}
|
||||
wlr_log(L_DEBUG, "Got valid workspace command for target: '%s'",
|
||||
wlr_log(WLR_DEBUG, "Got valid workspace command for target: '%s'",
|
||||
_target);
|
||||
|
||||
// Make sure that the command references an actual workspace
|
||||
|
|
@ -161,7 +161,7 @@ char *workspace_next_name(const char *output_name) {
|
|||
temp[length - 1] = '\0';
|
||||
free(_target);
|
||||
_target = temp;
|
||||
wlr_log(L_DEBUG, "Isolated name from workspace number: '%s'", _target);
|
||||
wlr_log(WLR_DEBUG, "Isolated name from workspace number: '%s'", _target);
|
||||
|
||||
// Make sure the workspace number doesn't already exist
|
||||
if (workspace_by_number(_target)) {
|
||||
|
|
@ -190,7 +190,7 @@ char *workspace_next_name(const char *output_name) {
|
|||
order = binding->order;
|
||||
free(target);
|
||||
target = _target;
|
||||
wlr_log(L_DEBUG, "Workspace: Found free name %s", _target);
|
||||
wlr_log(WLR_DEBUG, "Workspace: Found free name %s", _target);
|
||||
} else {
|
||||
free(_target);
|
||||
}
|
||||
|
|
@ -387,7 +387,7 @@ bool workspace_switch(struct sway_container *workspace) {
|
|||
free(prev_workspace_name);
|
||||
prev_workspace_name = malloc(strlen(active_ws->name) + 1);
|
||||
if (!prev_workspace_name) {
|
||||
wlr_log(L_ERROR, "Unable to allocate previous workspace name");
|
||||
wlr_log(WLR_ERROR, "Unable to allocate previous workspace name");
|
||||
return false;
|
||||
}
|
||||
strcpy(prev_workspace_name, active_ws->name);
|
||||
|
|
@ -409,7 +409,7 @@ bool workspace_switch(struct sway_container *workspace) {
|
|||
}
|
||||
}
|
||||
|
||||
wlr_log(L_DEBUG, "Switching to workspace %p:%s",
|
||||
wlr_log(WLR_DEBUG, "Switching to workspace %p:%s",
|
||||
workspace, workspace->name);
|
||||
struct sway_container *next = seat_get_focus_inactive(seat, workspace);
|
||||
if (next == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue