platforms/x11: Set reasonable refresh rate for dummy output

A refresh rate of -1 may break compositing scheduling code that relies
on the refresh rate being valid.
This commit is contained in:
Vlad Zahorodnii 2020-11-28 14:34:05 +02:00
parent e3e6b3de2d
commit afc77c82f3

View file

@ -424,7 +424,7 @@ void X11StandalonePlatform::doUpdateOutputs()
auto fallback = [this]() {
auto *o = new X11Output(this);
o->setGammaRampSize(0);
o->setRefreshRate(-1.0f);
o->setRefreshRate(60000);
o->setName(QStringLiteral("Xinerama"));
m_outputs << o;
};