summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 966b1fe3..ede6c60c 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -186,7 +186,7 @@ static void set_config_node(struct sway_node *node) {
186 switch (node->type) { 186 switch (node->type) {
187 case N_CONTAINER: 187 case N_CONTAINER:
188 config->handler_context.container = node->sway_container; 188 config->handler_context.container = node->sway_container;
189 config->handler_context.workspace = node->sway_container->workspace; 189 config->handler_context.workspace = node->sway_container->pending.workspace;
190 break; 190 break;
191 case N_WORKSPACE: 191 case N_WORKSPACE:
192 config->handler_context.workspace = node->sway_workspace; 192 config->handler_context.workspace = node->sway_workspace;