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.
This commit is contained in:
David Edmundson 2020-06-18 23:42:41 +01:00 committed by David Edmundson
parent 45812785cf
commit b332cb4d1f

View file

@ -520,6 +520,9 @@ QVector<wl_resource *> OutputInterface::clientResources(ClientConnection *client
bool OutputInterface::isEnabled() const
{
Q_D();
if (!d->dpms.supported) {
return true;
}
return d->dpms.mode == DpmsMode::On;
}