mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Store scratchpad list in sway_root instead of server
This commit is contained in:
parent
81e8f31cc6
commit
12e90fa600
7 changed files with 18 additions and 18 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue