aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-08-04 20:41:45 +0100
committerGitHub <noreply@github.com>2018-08-04 20:41:45 +0100
commit0016f774407cdb96e6fe3b1b9235119d9b398f8b (patch)
treebc82fb73e33446c5ec0b50c1bae73658e3eeb6b4 /sway/commands/move.c
parent5de2223c6df480759ee6d8f4422c2643491595d0 (diff)
parent30e7e0f7c7d3d3ce2851f2e70842d735343fb402 (diff)
downloadsway-0016f774407cdb96e6fe3b1b9235119d9b398f8b.tar.xz
Merge pull request #2418 from RyanDwyer/separate-root
Separate root-related code
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index 1e8b76f9..841da4c4 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -9,10 +9,9 @@
#include "sway/input/cursor.h"
#include "sway/input/seat.h"
#include "sway/output.h"
-#include "sway/scratchpad.h"
#include "sway/tree/arrange.h"
#include "sway/tree/container.h"
-#include "sway/tree/layout.h"
+#include "sway/tree/root.h"
#include "sway/tree/workspace.h"
#include "stringop.h"
#include "list.h"
@@ -324,7 +323,7 @@ static struct cmd_results *move_to_scratchpad(struct sway_container *con) {
return cmd_results_new(CMD_INVALID, "move",
"Container is already in the scratchpad");
}
- scratchpad_add_container(con);
+ root_scratchpad_add_container(con);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}