Revert "Fullscreen hack for Windows 11 native resize"

This reverts commit f7bff01793.
This commit is contained in:
Ilya Fedin 2024-09-10 16:21:37 +04:00 committed by John Preston
parent a307e7a798
commit 7abc921d20

View file

@ -973,7 +973,7 @@ void OverlayWidget::savePosition() {
void OverlayWidget::updateGeometry(bool inMove) {
initFullScreen();
if (_fullscreen && (!Platform::IsWindows11OrGreater() || !isHidden())) {
if (_fullscreen) {
updateGeometryToScreen(inMove);
} else if (_windowed && _normalGeometryInited) {
DEBUG_LOG(("Viewer Pos: Setting %1, %2, %3, %4")
@ -3778,9 +3778,6 @@ void OverlayWidget::showAndActivate() {
_wasWindowedMode = true;
} else if (_fullscreen) {
_window->showFullScreen();
if (Platform::IsWindows11OrGreater()) {
updateGeometry();
}
} else {
_window->showMaximized();
}