diff options
Diffstat (limited to 'sway/commands/scratchpad.c')
-rw-r--r-- | sway/commands/scratchpad.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/scratchpad.c b/sway/commands/scratchpad.c index 8a529cb4..ccc07c87 100644 --- a/sway/commands/scratchpad.c +++ b/sway/commands/scratchpad.c | |||
@@ -2,7 +2,6 @@ | |||
2 | #include "sway/commands.h" | 2 | #include "sway/commands.h" |
3 | #include "sway/config.h" | 3 | #include "sway/config.h" |
4 | #include "sway/scratchpad.h" | 4 | #include "sway/scratchpad.h" |
5 | #include "sway/server.h" | ||
6 | #include "sway/tree/container.h" | 5 | #include "sway/tree/container.h" |
7 | 6 | ||
8 | struct cmd_results *cmd_scratchpad(int argc, char **argv) { | 7 | struct cmd_results *cmd_scratchpad(int argc, char **argv) { |
@@ -14,7 +13,7 @@ struct cmd_results *cmd_scratchpad(int argc, char **argv) { | |||
14 | return cmd_results_new(CMD_INVALID, "scratchpad", | 13 | return cmd_results_new(CMD_INVALID, "scratchpad", |
15 | "Expected 'scratchpad show'"); | 14 | "Expected 'scratchpad show'"); |
16 | } | 15 | } |
17 | if (!server.scratchpad->length) { | 16 | if (!root_container.sway_root->scratchpad->length) { |
18 | return cmd_results_new(CMD_INVALID, "scratchpad", | 17 | return cmd_results_new(CMD_INVALID, "scratchpad", |
19 | "Scratchpad is empty"); | 18 | "Scratchpad is empty"); |
20 | } | 19 | } |