]> git.sur5r.net Git - i3/i3/blobdiff - src/commands.c
get_output_for_con: Assert result != NULL
[i3/i3] / src / commands.c
index 778b4a1a9da95b43c71f3a936515d65f0c852d6c..b7fbce902f324836cab989ab2cfca3bd96e7fc5a 100644 (file)
@@ -1114,22 +1114,13 @@ void cmd_move_workspace_to_output(I3_CMD, const char *name) {
         }
 
         Output *current_output = get_output_for_con(ws);
-        if (current_output == NULL) {
-            yerror("Cannot get current output. This is a bug in i3.");
-            return;
-        }
-
         Output *target_output = get_output_from_string(current_output, name);
         if (!target_output) {
             yerror("Could not get output from string \"%s\"", name);
             return;
         }
 
-        bool success = workspace_move_to_output(ws, target_output);
-        if (!success) {
-            yerror("Failed to move workspace to output.");
-            return;
-        }
+        workspace_move_to_output(ws, target_output);
     }
 
     cmd_output->needs_tree_render = true;