mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
add position check logs
Change-Id: I5f276f46a554c5355838530e9e1f0f537a190d26
This commit is contained in:
parent
43280afa57
commit
4f4098f891
Notes:
Deepin Code Review
2017-12-13 13:11:15 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Wed, 13 Dec 2017 13:11:14 +0800 Reviewed-on: https://cr.deepin.io/29341 Project: dde/dde-dock Branch: refs/heads/master
@ -73,6 +73,7 @@ public:
|
||||
bool autoHide() const;
|
||||
const QRect primaryRect() const;
|
||||
const QRect primaryRawRect() const { return m_primaryRawRect; }
|
||||
const QRect frontendWindowRect() const { return m_frontendRect; }
|
||||
const QSize windowSize() const;
|
||||
const QRect windowRect(const Position position, const bool hide = false) const;
|
||||
|
||||
|
@ -737,6 +737,9 @@ void MainWindow::positionCheck()
|
||||
if (m_positionUpdateTimer->isActive())
|
||||
return;
|
||||
|
||||
// if (pos() != m_settings->window)
|
||||
// qDebug() << pos() << m_settings->windowRect(m_settings->position(), false);
|
||||
if (pos() == m_settings->frontendWindowRect().topLeft())
|
||||
return;
|
||||
|
||||
qWarning() << "Dock position may error!!!!!";
|
||||
qDebug() << pos() << m_settings->frontendWindowRect() << m_settings->windowRect(m_settings->position(), false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user