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 committed by Drew DeVault
parent 6021fc4a08
commit 5e5e5f2ee5
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;