aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/scratchpad.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-22 22:28:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-23 08:24:32 +1000
commit12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3 (patch)
tree5f855ab05c0ec079f4487e9527f87f37c1929bf1 /sway/commands/scratchpad.c
parentImplement scratchpad (diff)
downloadsway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.tar.gz
sway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.tar.zst
sway-12e90fa6006b2cf17a5b5983b5a6e2e70cda58d3.zip
Store scratchpad list in sway_root instead of server
Diffstat (limited to 'sway/commands/scratchpad.c')
-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 @@
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
8struct cmd_results *cmd_scratchpad(int argc, char **argv) { 7struct 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 }