mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Store media viewer geometry the same way as main window
This commit is contained in:
parent
eaf4575eb8
commit
750ad600be
1 changed files with 3 additions and 2 deletions
|
@ -867,7 +867,8 @@ void OverlayWidget::savePosition() {
|
|||
} else if (!_wasWindowedMode && !Platform::IsMac()) {
|
||||
return;
|
||||
} else {
|
||||
auto r = _normalGeometry = _window->geometry();
|
||||
auto r = _normalGeometry = _window->body()->mapToGlobal(
|
||||
_window->body()->rect());
|
||||
realPosition.x = r.x();
|
||||
realPosition.y = r.y();
|
||||
realPosition.w = r.width();
|
||||
|
@ -912,7 +913,7 @@ void OverlayWidget::updateGeometry(bool inMove) {
|
|||
.arg(_normalGeometry.y())
|
||||
.arg(_normalGeometry.width())
|
||||
.arg(_normalGeometry.height()));
|
||||
_window->RpWidget::setGeometry(_normalGeometry);
|
||||
_window->setGeometry(_normalGeometry);
|
||||
}
|
||||
if constexpr (!Platform::IsMac()) {
|
||||
if (_fullscreen) {
|
||||
|
|
Loading…
Add table
Reference in a new issue