Use QGuiApplication::primaryScreen() as fallback for Systray::currentScreen()
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 14 Sep 2020 16:22:56 +0000 (18:22 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 15 Sep 2020 07:17:03 +0000 (07:17 +0000)
commit7ccb016397a3db9a128f491f752e14b947f73e46
tree91892e527ab2d6e1a96e2072503a676e76f39810
parent54b09a1fbb1833082f1a89754b8f9ffecd127435
Use QGuiApplication::primaryScreen() as fallback for Systray::currentScreen()

Under Wayland QCursor::pos() is unlikely to give us anything meaningful,
so fallback to the primary screen information.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/systray.cpp