mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-21 10:44:25 +00:00
libweston: Skip setting DPMS if output is not enabled
With the output not being enabled, there's no way we can actually manipulate its DPMS state. Signed-off-by: marius vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
70004a7edc
commit
82dbb606a2
|
@ -7625,7 +7625,7 @@ weston_output_force_power(struct weston_output *output,
|
|||
output->compositor->state == WESTON_COMPOSITOR_OFFSCREEN)
|
||||
return;
|
||||
|
||||
if (!output->set_dpms)
|
||||
if (!output->set_dpms || !output->enabled)
|
||||
return;
|
||||
|
||||
dpms = (power == WESTON_OUTPUT_POWER_NORMAL) ? WESTON_DPMS_ON : WESTON_DPMS_OFF;
|
||||
|
|
Loading…
Reference in a new issue