mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Avoid saving viewer position unless it's really on screen
This commit is contained in:
@@ -980,7 +980,7 @@ void OverlayWidget::savePosition() {
|
||||
realPosition.maximized = 1;
|
||||
realPosition.moncrc = 0;
|
||||
DEBUG_LOG(("Viewer Pos: Saving maximized position."));
|
||||
} else if (!_wasWindowedMode && !Platform::IsMac()) {
|
||||
} else if (!_wasWindowedMode) {
|
||||
return;
|
||||
} else {
|
||||
auto r = _normalGeometry = _window->body()->mapToGlobal(
|
||||
|
||||
Reference in New Issue
Block a user