Merge pull request #2418 from nextcloud/use_primary_screen_as_fallback_when_qcursor_pos_search_failed

Use QGuiApplication::primaryScreen() as fallback for Systray::currentScreen()
This commit is contained in:
Kevin Ottens 2020-09-15 10:44:54 +02:00 committed by GitHub
commit 4f5d707e44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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