mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-06-20 20:08:22 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue