Add a secondary headless backend

This allows the create_output command to work on DRM too.
This commit is contained in:
Simon Ser 2020-04-14 15:04:56 +02:00
parent 7251df94c1
commit 62393dca98
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 10 additions and 1 deletions

View file

@ -29,6 +29,8 @@ struct sway_server {
struct wlr_backend *backend;
struct wlr_backend *noop_backend;
// secondary headless backend used for creating virtual outputs on-the-fly
struct wlr_backend *headless_backend;
struct wlr_compositor *compositor;
struct wl_listener compositor_new_surface;