mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
sway: replace noop_output by fallback_output
wlroots removed the support for the noop backend. Instead we rely on the headless backend to provide the fallback output.
This commit is contained in:
parent
729e18bff5
commit
0cd8efe0bb
11 changed files with 28 additions and 26 deletions
|
|
@ -624,7 +624,7 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
|
|||
output = ws->output;
|
||||
}
|
||||
}
|
||||
if (!output || output == root->noop_output) {
|
||||
if (!output || output == root->fallback_output) {
|
||||
if (!root->outputs->length) {
|
||||
sway_log(SWAY_ERROR,
|
||||
"no output to auto-assign layer surface '%s' to",
|
||||
|
|
|
|||
|
|
@ -733,7 +733,7 @@ static void update_output_manager_config(struct sway_server *server) {
|
|||
|
||||
struct sway_output *output;
|
||||
wl_list_for_each(output, &root->all_outputs, link) {
|
||||
if (output == root->noop_output) {
|
||||
if (output == root->fallback_output) {
|
||||
continue;
|
||||
}
|
||||
struct wlr_output_configuration_head_v1 *config_head =
|
||||
|
|
@ -838,6 +838,10 @@ static void handle_present(struct wl_listener *listener, void *data) {
|
|||
void handle_new_output(struct wl_listener *listener, void *data) {
|
||||
struct sway_server *server = wl_container_of(listener, server, new_output);
|
||||
struct wlr_output *wlr_output = data;
|
||||
if (wlr_output == root->fallback_output->wlr_output) {
|
||||
return;
|
||||
}
|
||||
|
||||
sway_log(SWAY_DEBUG, "New output %p: %s (non-desktop: %d)",
|
||||
wlr_output, wlr_output->name, wlr_output->non_desktop);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue