mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Don't modeset output to default mode when already set to a mode
This commit is contained in:
parent
bf7af9c690
commit
f85e18b359
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ void apply_output_config(struct output_config *oc, struct sway_output *output) {
|
||||||
wlr_log(WLR_DEBUG, "Set %s mode to %dx%d (%f GHz)", oc->name, oc->width,
|
wlr_log(WLR_DEBUG, "Set %s mode to %dx%d (%f GHz)", oc->name, oc->width,
|
||||||
oc->height, oc->refresh_rate);
|
oc->height, oc->refresh_rate);
|
||||||
set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate);
|
set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate);
|
||||||
} else if (!wl_list_empty(&wlr_output->modes)) {
|
} else if (wlr_output->current_mode == NULL && !wl_list_empty(&wlr_output->modes)) {
|
||||||
struct wlr_output_mode *mode =
|
struct wlr_output_mode *mode =
|
||||||
wl_container_of(wlr_output->modes.prev, mode, link);
|
wl_container_of(wlr_output->modes.prev, mode, link);
|
||||||
wlr_output_set_mode(wlr_output, mode);
|
wlr_output_set_mode(wlr_output, mode);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue