mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Revert "Fullscreen hack for Windows 11 native resize"
This reverts commit f7bff01793
.
This commit is contained in:
parent
a307e7a798
commit
7abc921d20
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue