Support the right side Hide

This commit is contained in:
reionwong 2021-06-21 13:22:49 +08:00
parent e0baaa1ce2
commit d4a67e6817

View file

@ -111,6 +111,10 @@ void FakeWindow::updateGeometry()
newRect = QRect(screenRect.x(),
screenRect.y() + screenRect.height() - length,
screenRect.width(), length);
} else if (DockSettings::self()->direction() == DockSettings::Right) {
newRect = QRect(screenRect.x() + screenRect.width() - length,
screenRect.y(),
length, screenRect.height());
}
setGeometry(newRect);