aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-22 22:28:20 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-23 08:24:32 +1000
commit12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3 (patch)
tree5f855ab05c0ec079f4487e9527f87f37c1929bf1 /sway/commands
parent81e8f31cc6f284b54ab206e14af7ecbc1a9ed1bb (diff)
downloadsway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.tar.xz
Store scratchpad list in sway_root instead of server
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/scratchpad.c3
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 @@
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/scratchpad.h"
-#include "sway/server.h"
#include "sway/tree/container.h"
struct cmd_results *cmd_scratchpad(int argc, char **argv) {
@@ -14,7 +13,7 @@ struct cmd_results *cmd_scratchpad(int argc, char **argv) {
return cmd_results_new(CMD_INVALID, "scratchpad",
"Expected 'scratchpad show'");
}
- if (!server.scratchpad->length) {
+ if (!root_container.sway_root->scratchpad->length) {
return cmd_results_new(CMD_INVALID, "scratchpad",
"Scratchpad is empty");
}