mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Use noop output when there's no outputs connected
Instead of having NULL workspace->output pointers, use a noop output. This should be safer.
This commit is contained in:
parent
ab0248a545
commit
2301349ad5
8 changed files with 29 additions and 28 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue