Fix media viewer create on non-primary screen.

This commit is contained in:
John Preston 2024-09-02 22:21:59 +04:00
parent 54e5c06b4d
commit ab2e7f4c03

View file

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