aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2019-01-17 20:16:23 +1000
committeremersion <contact@emersion.fr>2019-01-22 09:55:13 +0100
commit2301349ad59751640ed9e59dd22edeafaf09da39 (patch)
tree1726c2f8ec1cd9baaf27fbed62aa6a337bc85ce7 /include/sway/tree
parentab0248a54564b2f644b6fb367f9eb44fe0bf5f3c (diff)
Use noop output when there's no outputs connected
Instead of having NULL workspace->output pointers, use a noop output. This should be safer.
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/root.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h
index ceccc920..8f4deaa7 100644
--- a/include/sway/tree/root.h
+++ b/include/sway/tree/root.h
@@ -31,7 +31,9 @@ struct sway_root {
list_t *outputs; // struct sway_output
list_t *scratchpad; // struct sway_container
- list_t *saved_workspaces; // For when there's no connected outputs
+
+ // For when there's no connected outputs
+ struct sway_output *noop_output;
struct {
struct wl_signal new_node;