Commit b332cb4d authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

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.
parent 45812785
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment