From a760b236852d47f999dcb92bf8a251a999ab896f Mon Sep 17 00:00:00 2001 From: Ezri Date: Tue, 4 Feb 2025 16:59:01 -0700 Subject: [PATCH] Fixed container movement not working --- sway_context_manager/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")