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()) {
|
} else if (!_wasWindowedMode && !Platform::IsMac()) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
auto r = _normalGeometry = _window->geometry();
|
auto r = _normalGeometry = _window->body()->mapToGlobal(
|
||||||
|
_window->body()->rect());
|
||||||
realPosition.x = r.x();
|
realPosition.x = r.x();
|
||||||
realPosition.y = r.y();
|
realPosition.y = r.y();
|
||||||
realPosition.w = r.width();
|
realPosition.w = r.width();
|
||||||
|
@ -912,7 +913,7 @@ void OverlayWidget::updateGeometry(bool inMove) {
|
||||||
.arg(_normalGeometry.y())
|
.arg(_normalGeometry.y())
|
||||||
.arg(_normalGeometry.width())
|
.arg(_normalGeometry.width())
|
||||||
.arg(_normalGeometry.height()));
|
.arg(_normalGeometry.height()));
|
||||||
_window->RpWidget::setGeometry(_normalGeometry);
|
_window->setGeometry(_normalGeometry);
|
||||||
}
|
}
|
||||||
if constexpr (!Platform::IsMac()) {
|
if constexpr (!Platform::IsMac()) {
|
||||||
if (_fullscreen) {
|
if (_fullscreen) {
|
||||||
|
|
Loading…
Reference in a new issue