From 2301349ad59751640ed9e59dd22edeafaf09da39 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 17 Jan 2019 20:16:23 +1000 Subject: Use noop output when there's no outputs connected Instead of having NULL workspace->output pointers, use a noop output. This should be safer. --- include/sway/tree/root.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/sway/tree') 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; -- cgit v1.2.3