Skip to content

Commit

Permalink
Revert "Fullscreen hack for Windows 11 native resize"
Browse files Browse the repository at this point in the history
This reverts commit f7bff01.
  • Loading branch information
ilya-fedin authored and john-preston committed Sep 19, 2024
1 parent a307e7a commit 7abc921
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -3778,9 +3778,6 @@ void OverlayWidget::showAndActivate() {
_wasWindowedMode = true;
} else if (_fullscreen) {
_window->showFullScreen();
if (Platform::IsWindows11OrGreater()) {
updateGeometry();
}
} else {
_window->showMaximized();
}
Expand Down

0 comments on commit 7abc921

Please sign in to comment.