diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index f8c827c5b3..899cbf7415 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -211,7 +211,9 @@ QScreen *Systray::currentScreen() const } } - return nullptr; + // Didn't find anything matching the cursor position, + // falling back to the primary screen + return QGuiApplication::primaryScreen(); } Systray::TaskBarPosition Systray::taskbarOrientation() const