core/renderloop: add a debug print for presentation mode changes

It can be useful for debugging and these changes don't happen too often
This commit is contained in:
Xaver Hugl 2024-07-09 16:44:45 +02:00
parent 5316cf8d50
commit 1c7c16f28b

View file

@ -279,6 +279,9 @@ std::chrono::nanoseconds RenderLoop::nextPresentationTimestamp() const
void RenderLoop::setPresentationMode(PresentationMode mode)
{
if (mode != d->presentationMode) {
qCDebug(KWIN_CORE) << "Changed presentation mode to" << mode;
}
d->presentationMode = mode;
}