]> git.sur5r.net Git - i3/i3/commitdiff
cmd_move_con_to_workspace_number: rename workspace->ws 3080/head
authorOrestis Floros <orestisf1993@gmail.com>
Sun, 10 Dec 2017 20:08:46 +0000 (22:08 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Wed, 27 Dec 2017 18:56:37 +0000 (20:56 +0200)
For consistency with other cmd_move_con_to_workspace* functions.

src/commands.c

index 5bfdc96a3a00a1b18a8b6cf8904719277fb768cc..02d14daac01392d47baf7cb3cdf6ba05319b1687 100644 (file)
@@ -403,7 +403,7 @@ void cmd_move_con_to_workspace_number(I3_CMD, const char *which, const char *_no
 
     LOG("should move window to workspace %s\n", which);
     /* get the workspace */
-    Con *output, *workspace = NULL;
+    Con *output, *ws = NULL;
 
     long parsed_num = ws_name_to_number(which);
 
@@ -414,19 +414,19 @@ void cmd_move_con_to_workspace_number(I3_CMD, const char *which, const char *_no
     }
 
     TAILQ_FOREACH(output, &(croot->nodes_head), nodes)
-    GREP_FIRST(workspace, output_get_content(output),
+    GREP_FIRST(ws, output_get_content(output),
                child->num == parsed_num);
 
-    if (!workspace) {
-        workspace = workspace_get(which, NULL);
+    if (!ws) {
+        ws = workspace_get(which, NULL);
     }
 
     if (!no_auto_back_and_forth)
-        workspace = maybe_auto_back_and_forth_workspace(workspace);
+        ws = maybe_auto_back_and_forth_workspace(ws);
 
     HANDLE_EMPTY_MATCH;
 
-    move_matches_to_workspace(workspace);
+    move_matches_to_workspace(ws);
 
     cmd_output->needs_tree_render = true;
     // XXX: default reply for now, make this a better reply