mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
void OverlayWidget::updateGeometry(bool inMove) {
|
||||||
initFullScreen();
|
initFullScreen();
|
||||||
if (_fullscreen && (!Platform::IsWindows11OrGreater() || !isHidden())) {
|
if (_fullscreen) {
|
||||||
updateGeometryToScreen(inMove);
|
updateGeometryToScreen(inMove);
|
||||||
} else if (_windowed && _normalGeometryInited) {
|
} else if (_windowed && _normalGeometryInited) {
|
||||||
DEBUG_LOG(("Viewer Pos: Setting %1, %2, %3, %4")
|
DEBUG_LOG(("Viewer Pos: Setting %1, %2, %3, %4")
|
||||||
|
@ -3778,9 +3778,6 @@ void OverlayWidget::showAndActivate() {
|
||||||
_wasWindowedMode = true;
|
_wasWindowedMode = true;
|
||||||
} else if (_fullscreen) {
|
} else if (_fullscreen) {
|
||||||
_window->showFullScreen();
|
_window->showFullScreen();
|
||||||
if (Platform::IsWindows11OrGreater()) {
|
|
||||||
updateGeometry();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
_window->showMaximized();
|
_window->showMaximized();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue