mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fixed(dock): fixed bug 1979
This commit is contained in:
parent
116c2c5022
commit
2b3b52bbe8
@ -384,6 +384,11 @@ void DockSettings::resetFrontendGeometry()
|
|||||||
m_dockInter->SetFrontendWindowRect(p.x(), p.y(), w, h);
|
m_dockInter->SetFrontendWindowRect(p.x(), p.y(), w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DockSettings::updateFrontendGeometry()
|
||||||
|
{
|
||||||
|
resetFrontendGeometry();
|
||||||
|
}
|
||||||
|
|
||||||
bool DockSettings::test(const Position pos, const QList<QRect> &otherScreens) const
|
bool DockSettings::test(const Position pos, const QList<QRect> &otherScreens) const
|
||||||
{
|
{
|
||||||
QRect maxStrut(0, 0, m_screenRawWidth, m_screenRawHeight);
|
QRect maxStrut(0, 0, m_screenRawWidth, m_screenRawHeight);
|
||||||
|
@ -83,6 +83,8 @@ public:
|
|||||||
qreal dockRatio() const;
|
qreal dockRatio() const;
|
||||||
|
|
||||||
void showDockSettingsMenu();
|
void showDockSettingsMenu();
|
||||||
|
void updateFrontendGeometry();
|
||||||
|
|
||||||
QSize m_mainWindowSize;
|
QSize m_mainWindowSize;
|
||||||
DBusDock *m_dockInter;
|
DBusDock *m_dockInter;
|
||||||
|
|
||||||
|
@ -365,6 +365,7 @@ void MainWindow::internalMove(const QPoint &p)
|
|||||||
case Right: rp.setX(r.right() - 1); break;
|
case Right: rp.setX(r.right() - 1); break;
|
||||||
case Bottom: rp.setY(r.bottom() - 1); break;
|
case Bottom: rp.setY(r.bottom() - 1); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hx = height() * ratio, wx = width() * ratio;
|
int hx = height() * ratio, wx = width() * ratio;
|
||||||
if (m_settings->hideMode() != HideMode::KeepShowing &&
|
if (m_settings->hideMode() != HideMode::KeepShowing &&
|
||||||
isHide &&
|
isHide &&
|
||||||
@ -909,6 +910,7 @@ void MainWindow::onDragFinished()
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStrutPartial();
|
setStrutPartial();
|
||||||
|
m_settings->updateFrontendGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "mainwindow.moc"
|
#include "mainwindow.moc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user