diff options
author | Simon Ser <[email protected]> | 2021-12-09 15:55:58 +0100 |
---|---|---|
committer | Simon Zeni <[email protected]> | 2021-12-09 10:47:01 -0600 |
commit | 3f58f12617ca4d6a311d060081e40bf01a73c239 (patch) | |
tree | 16f1da9d83f9bbd9b5c973a9891057074595d896 /sway/server.c | |
parent | 1eaa61f503f38673db2c18d22515406c66d13424 (diff) |
Fixup headless output names
We use the headless backend to create a special fallback output
used when no other output is connected. However this messes up the
"real" headless output names users have come to expect (e.g.
currently the first headless output will be named "HEADLESS-2"
instead of "HEADLESS-1").
Fix this by setting the output name with [1].
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3395
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index ff269c79..582a04ab 100644 --- a/sway/server.c +++ b/sway/server.c @@ -227,6 +227,7 @@ bool server_init(struct sway_server *server) { struct wlr_output *wlr_output = wlr_headless_add_output(server->headless_backend, 800, 600); + wlr_output_set_name(wlr_output, "FALLBACK"); root->fallback_output = output_create(wlr_output); // This may have been set already via -Dtxn-timeout |