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:
parent
45812785cf
commit
b332cb4d1f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue