mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-25 21:58:31 +01:00
desktop/output: drop logic to handle backend-applied mode
The wlroots backends no longer magically apply output modes behind the compositor's back.
This commit is contained in:
parent
df8aad9c5a
commit
d557b6876b
1 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue