mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00: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
@ -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 New Issue
Block a user