From d4a67e68172015a4fa38240cecf7e85f24400396 Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 21 Jun 2021 13:22:49 +0800 Subject: [PATCH] Support the right side Hide --- src/fakewindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fakewindow.cpp b/src/fakewindow.cpp index 0341179..be193bf 100644 --- a/src/fakewindow.cpp +++ b/src/fakewindow.cpp @@ -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);