mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
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
This commit is contained in:
parent
1eaa61f503
commit
3f58f12617
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue