From b332cb4d1ffca47a544e51460f6a5dd7a618c54e Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 18 Jun 2020 23:42:41 +0100 Subject: [PATCH] Assume enabled if DPMS is not supported This fixes several unit tests in kwin where the virtual output is not considered enabled causing behavioural changes. --- src/wayland/output_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/output_interface.cpp b/src/wayland/output_interface.cpp index 7173a26a25..c3ef521a65 100644 --- a/src/wayland/output_interface.cpp +++ b/src/wayland/output_interface.cpp @@ -520,6 +520,9 @@ QVector OutputInterface::clientResources(ClientConnection *client bool OutputInterface::isEnabled() const { Q_D(); + if (!d->dpms.supported) { + return true; + } return d->dpms.mode == DpmsMode::On; }