mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
add log info for forbids locations
Change-Id: I030f6f44d3473a57da1d0fb1ae961fe2f8f64b35
This commit is contained in:
parent
b4427792cf
commit
4c14fe2755
Notes:
gerrit
2018-05-29 10:56:34 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: sbwtw <sbw@sbw.so> Submitted-by: sbwtw <sbw@sbw.so> Submitted-at: Tue, 29 May 2018 10:56:33 +0800 Reviewed-on: https://cr.deepin.io/35135 Project: dde/dde-dock Branch: refs/heads/master
@ -467,6 +467,8 @@ void DockSettings::updateForbidPostions()
|
||||
QList<QRect> rawScreenRects;
|
||||
for (auto *s : screens)
|
||||
{
|
||||
qInfo() << s->name() << s->geometry();
|
||||
|
||||
if (s == qApp->primaryScreen())
|
||||
continue;
|
||||
|
||||
@ -474,6 +476,8 @@ void DockSettings::updateForbidPostions()
|
||||
rawScreenRects << QRect(g.topLeft(), g.size() * s->devicePixelRatio());
|
||||
}
|
||||
|
||||
qInfo() << rawScreenRects << m_screenRawWidth << m_screenRawHeight;
|
||||
|
||||
if (!test(Top, rawScreenRects))
|
||||
forbids << Top;
|
||||
if (!test(Bottom, rawScreenRects))
|
||||
@ -488,7 +492,6 @@ void DockSettings::updateForbidPostions()
|
||||
|
||||
void DockSettings::calculateWindowConfig()
|
||||
{
|
||||
// qDebug() << Q_FUNC_INFO;
|
||||
const auto ratio = qApp->devicePixelRatio();
|
||||
const int defaultHeight = std::round(AppItem::itemBaseHeight() / ratio);
|
||||
const int defaultWidth = std::round(AppItem::itemBaseWidth() / ratio);
|
||||
|
Loading…
x
Reference in New Issue
Block a user