utils/xcbutils: reduce severity of "precision lost" message a debug

Right now this is marked as critical, but it's not a critical error.
Make it a debug to avoid spamming logs with not-very-actionable
information.

BUG: 463259
FIXED-IN: 5.27
This commit is contained in:
Nate Graham 2023-01-05 13:59:43 -07:00
parent 1651b7d1d7
commit 6a1552efb6

View file

@ -619,7 +619,7 @@ uint32_t toXNative(qreal value)
{
//debug helper, check for things getting mangled
if (!qFuzzyIsNull(std::fmod(kwinApp()->xwaylandScale() * value, 1))) {
qCritical(KWIN_CORE) << "precision lost! floating value sent to X" << kwinApp()->xwaylandScale() * value;
qCDebug(KWIN_CORE) << "precision lost! floating value sent to X" << kwinApp()->xwaylandScale() * value;
}
return std::round(kwinApp()->xwaylandScale() * value);
}