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:
Ryan Dwyer 2019-01-17 20:16:23 +10:00 committed by emersion
parent ab0248a545
commit 2301349ad5
8 changed files with 29 additions and 28 deletions

View file

@ -24,6 +24,7 @@ struct sway_server {
const char *socket;
struct wlr_backend *backend;
struct wlr_backend *noop_backend;
struct wlr_compositor *compositor;
struct wlr_data_device_manager *data_device_manager;