Commit b45d0cd6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[applets/pager] Don't call KWindowSystem::mapViewport on Wayland

It always returns false there and prints a warning

Only call it on X11 to avoid the warning
parent 81129445
Pipeline #200332 passed with stage
in 8 minutes and 20 seconds
......@@ -72,7 +72,7 @@ QVariant WindowModel::data(const QModelIndex &index, int role) const
windowGeo.setBottomRight(windowGeo.bottomRight() / ratio);
if (KWindowSystem::mapViewport()) {
if (KWindowSystem::isPlatformX11() && KWindowSystem::mapViewport()) {
int x = % desktopSize.width();
int y = % desktopSize.height();
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