mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix(size): 修复多屏切换,从低分屏切换到高分屏时,任务栏的大小异常问题
切换到另外一个屏幕显示后,未更新任务栏的大小 Log: 修复多屏切换导致的任务栏大小显示异常问题 Bug:https://pms.uniontech.com/zentao/bug-view-32656.html
This commit is contained in:
parent
66093fb14b
commit
4521602879
@ -77,6 +77,7 @@ public:
|
||||
QString ¤tDockScreen() { return m_currentScreen; }
|
||||
|
||||
void posChangedUpdateSettings();
|
||||
void calculateWindowConfig();
|
||||
|
||||
QSize m_mainWindowSize;
|
||||
DBusDock *m_dockInter;
|
||||
@ -118,7 +119,6 @@ private:
|
||||
DockSettings(DockSettings const &) = delete;
|
||||
DockSettings operator =(DockSettings const &) = delete;
|
||||
|
||||
void calculateWindowConfig();
|
||||
void gtkIconThemeChanged();
|
||||
void checkService();
|
||||
|
||||
|
@ -276,12 +276,14 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
// 动画完成更新dock设置
|
||||
m_settings->posChangedUpdateSettings();
|
||||
|
||||
const QRect windowRect = m_settings->windowRect(m_dockPosition, true);
|
||||
QWidget::move(windowRect.topLeft());
|
||||
QWidget::setFixedSize(windowRect.size());
|
||||
|
||||
m_mainPanel->move(QPoint(0, 0));
|
||||
}
|
||||
|
||||
m_settings->calculateWindowConfig();
|
||||
const QRect windowRect = m_settings->windowRect(m_dockPosition, true);
|
||||
QWidget::move(windowRect.topLeft());
|
||||
QWidget::setFixedSize(windowRect.size());
|
||||
m_mainPanel->setFixedSize(windowRect.size());
|
||||
});
|
||||
|
||||
updateRegionMonitorWatch();
|
||||
|
Loading…
x
Reference in New Issue
Block a user