mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
output/config: skip no-op fixed mode change
This commit is contained in:
parent
b03d8f685e
commit
80b7b14925
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ static void set_mode(struct wlr_output *output, struct wlr_output_state *pending
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (best) {
|
if (best) {
|
||||||
|
if (best == output->current_mode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
sway_log(SWAY_INFO, "Assigning configured mode (%dx%d@%.3fHz) to %s",
|
sway_log(SWAY_INFO, "Assigning configured mode (%dx%d@%.3fHz) to %s",
|
||||||
best->width, best->height, best->refresh / 1000.f, output->name);
|
best->width, best->height, best->refresh / 1000.f, output->name);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue