mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix media viewer create on non-primary screen.
This commit is contained in:
parent
54e5c06b4d
commit
ab2e7f4c03
1 changed files with 1 additions and 0 deletions
|
@ -816,6 +816,7 @@ void OverlayWidget::moveToScreen(bool inMove) {
|
|||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
_window->setScreen(activeWindowScreen);
|
||||
#else // Qt >= 6.0.0
|
||||
_window->createWinId();
|
||||
window()->setScreen(activeWindowScreen);
|
||||
#endif // Qt < 6.0.0
|
||||
DEBUG_LOG(("Viewer Pos: New actual screen: %1")
|
||||
|
|
Loading…
Add table
Reference in a new issue