diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-15 16:08:13 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-15 16:08:13 -0400 |
commit | 7f9ed880b0b102a1c9765d8b32e025ca778a57d5 (patch) | |
tree | 27313733bc2384048ae74bf196a7677e1355ad6b /sway/workspace.c | |
parent | f606508bccac841925e8d669fe90595697fac8af (diff) |
Rename variable in workspace.c
Diffstat (limited to 'sway/workspace.c')
-rw-r--r-- | sway/workspace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/workspace.c b/sway/workspace.c index 6f46dd6b..b8b4d66e 100644 --- a/sway/workspace.c +++ b/sway/workspace.c @@ -99,19 +99,19 @@ void workspace_switch(swayc_t *workspace) { parent = parent->parent; } // The current workspace of the output our target workspace is in - swayc_t *c_workspace = parent->focused; - if (workspace != c_workspace && c_workspace) { - sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", c_workspace->name, workspace->name); + swayc_t *focused_workspace = parent->focused; + if (workspace != focused_workspace && focused_workspace) { + sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", focused_workspace->name, workspace->name); uint32_t mask = 1; // set all c_views in the old workspace to the invisible mask if the workspace // is in the same output & c_views in the new workspace to the visible mask - container_map(c_workspace, set_mask, &mask); + container_map(focused_workspace, set_mask, &mask); mask = 2; container_map(workspace, set_mask, &mask); wlc_output_set_mask(wlc_get_focused_output(), 2); - destroy_workspace(c_workspace); + destroy_workspace(focused_workspace); } unfocus_all(&root_container); focus_view(workspace); |