mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
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:
commit
4f5d707e44
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue