diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp index 2384168ce..55a831cb6 100644 --- a/src/widgets/osdpretty.cpp +++ b/src/widgets/osdpretty.cpp @@ -502,6 +502,7 @@ QScreen *OSDPretty::current_screen(const QPoint &pos) const { #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) screen = QGuiApplication::screenAt(pos); #else + Q_UNUSED(pos) if (window() && window()->windowHandle()) screen = window()->windowHandle()->screen(); #endif if (!screen) screen = QGuiApplication::primaryScreen();