mirror of
https://github.com/swaywm/sway.git
synced 2024-12-01 02:49:26 +00:00
config/output: skip no-op modeline change
This commit is contained in:
parent
5b72fccb67
commit
b03d8f685e
|
@ -293,9 +293,9 @@ static void set_modeline(struct wlr_output *output,
|
||||||
sway_log(SWAY_ERROR, "Modeline can only be set to DRM output");
|
sway_log(SWAY_ERROR, "Modeline can only be set to DRM output");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sway_log(SWAY_DEBUG, "Assigning custom modeline to %s", output->name);
|
|
||||||
struct wlr_output_mode *mode = wlr_drm_connector_add_mode(output, drm_mode);
|
struct wlr_output_mode *mode = wlr_drm_connector_add_mode(output, drm_mode);
|
||||||
if (mode) {
|
if (mode && output->current_mode != mode) {
|
||||||
|
sway_log(SWAY_DEBUG, "Assigning custom modeline to %s", output->name);
|
||||||
wlr_output_state_set_mode(pending, mode);
|
wlr_output_state_set_mode(pending, mode);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue