Revert "Re-check the screen media viewer appears on before adjusting geometry"

This reverts commit c3b638449a.

It doesn't work as it was supposed to :(
This commit is contained in:
John Preston 2020-11-16 19:31:34 +03:00
parent 02eea38724
commit e4d2a66f45
1 changed files with 3 additions and 1 deletions

View File

@ -432,7 +432,9 @@ void OverlayWidget::moveToScreen(bool force) {
if (activeWindowScreen && myScreen && myScreen != activeWindowScreen) {
windowHandle()->setScreen(activeWindowScreen);
}
const auto screen = widgetScreen(this);
const auto screen = activeWindowScreen
? activeWindowScreen
: QApplication::primaryScreen();
const auto available = screen->geometry();
if (!force && geometry() == available) {
return;