mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fullscreen hack for Windows 11 native resize
This commit is contained in:
parent
404ce2e011
commit
f7bff01793
2 changed files with 5 additions and 2 deletions
|
@ -900,7 +900,7 @@ void OverlayWidget::savePosition() {
|
|||
|
||||
void OverlayWidget::updateGeometry(bool inMove) {
|
||||
initFullScreen();
|
||||
if (_fullscreen) {
|
||||
if (_fullscreen && (!Platform::IsWindows11OrGreater() || !isHidden())) {
|
||||
updateGeometryToScreen(inMove);
|
||||
} else if (_windowed && _normalGeometryInited) {
|
||||
_window->setGeometry(_normalGeometry);
|
||||
|
@ -3535,6 +3535,9 @@ void OverlayWidget::showAndActivate() {
|
|||
_wasWindowedMode = true;
|
||||
} else if (_fullscreen) {
|
||||
_window->showFullScreen();
|
||||
if (Platform::IsWindows11OrGreater()) {
|
||||
updateGeometry();
|
||||
}
|
||||
} else {
|
||||
_window->showMaximized();
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b49ee81df9d285d08ef6bf834c6e14c5064b4070
|
||||
Subproject commit 4a41346a6428571ec57422ea86e426f252c8ce39
|
Loading…
Add table
Reference in a new issue