]> git.sur5r.net Git - i3/i3/blobdiff - src/commands.c
Allow multiple assignments of workspaces to outputs
[i3/i3] / src / commands.c
index c7b57ab3571a94f89b5ebec0b39b2d23a3f9174d..a133daa6eddc2e740ca4413059cbfc19236563a2 100644 (file)
@@ -2019,6 +2019,9 @@ void cmd_rename_workspace(I3_CMD, const char *old_name, const char *new_name) {
             LOG("Could not get output named \"%s\"\n", assignment->output);
             continue;
         }
+        if (!output_triggers_assignment(target_output, assignment)) {
+            continue;
+        }
         workspace_move_to_output(workspace, target_output);
 
         bool can_restore_focus = previously_focused != NULL;