sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit d557b6876b53763d2e9e97c05ec4754f4e9aa984
parent df8aad9c5ab70ad646ec1742cc57473c6908a1be
Author: Simon Ser <contact@emersion.fr>
Date:   Mon, 31 Jul 2023 10:04:52 +0200

desktop/output: drop logic to handle backend-applied mode

The wlroots backends no longer magically apply output modes behind
the compositor's back.

Diffstat:
Msway/desktop/output.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -927,19 +927,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) { } static void handle_mode(struct sway_output *output) { - if (!output->enabled && !output->enabling) { - struct output_config *oc = find_output_config(output); - if (output->wlr_output->current_mode != NULL && - (!oc || oc->enabled)) { - // We want to enable this output, but it didn't work last time, - // possibly because we hadn't enough CRTCs. Try again now that the - // output has a mode. - sway_log(SWAY_DEBUG, "Output %s has gained a CRTC, " - "trying to enable it", output->wlr_output->name); - apply_output_config(oc, output); - } - return; - } if (!output->enabled) { return; }