Fixed container movement not working

This commit is contained in:
Ezri 2025-02-04 16:59:01 -07:00
parent c9e3ccab59
commit a760b23685
Signed by: ezri
GPG Key ID: 058A78E5680C6F24

View File

@ -56,10 +56,10 @@ class ContextMngrInterface(
async def move_container(self, user_index: int) -> bool: async def move_container(self, user_index: int) -> bool:
"""Move the focused container to a workspace by its 1-indexed ID in its group.""" """Move the focused container to a workspace by its 1-indexed ID in its group."""
print("Moving focused container to workspace", user_index) 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: if workspace is None:
return False return False
await workspace.move_container(self.connection) await workspace[0].move_container(self.connection)
return True return True
@dbus_method_async(input_signature="", result_signature="b") @dbus_method_async(input_signature="", result_signature="b")