diff --git a/sway_context_manager/interface.py b/sway_context_manager/interface.py index 3db5b62..01a7eb1 100644 --- a/sway_context_manager/interface.py +++ b/sway_context_manager/interface.py @@ -56,10 +56,10 @@ class ContextMngrInterface( async def move_container(self, user_index: int) -> bool: """Move the focused container to a workspace by its 1-indexed ID in its group.""" print("Moving focused container to workspace", user_index) - workspace = self.workspace_tree.get_workspace(user_index) + workspace, _ = self.workspace_tree.get_workspace(user_index) if workspace is None: return False - await workspace.move_container(self.connection) + await workspace[0].move_container(self.connection) return True @dbus_method_async(input_signature="", result_signature="b")