From ea3cf393a5a7369063b42a842b524c9023fec2c3 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Mon, 22 Mar 2021 10:51:48 +0800 Subject: [PATCH] Fix one pixel --- qml/ControlDialog.qml | 2 +- src/xwindowinterface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/ControlDialog.qml b/qml/ControlDialog.qml index c7be1dd..c2168e0 100644 --- a/qml/ControlDialog.qml +++ b/qml/ControlDialog.qml @@ -44,7 +44,7 @@ ControlCenterDialog { // right if (posX + control.width > Screen.width) - posX = Screen.width - control.width - Meui.Units.largeSpacing + posX = Screen.width - control.width - (root.windowRadius ? Meui.Units.largeSpacing : 0) // bottom if (posY > control.height > Screen.width) diff --git a/src/xwindowinterface.cpp b/src/xwindowinterface.cpp index b44c508..8e76cd5 100644 --- a/src/xwindowinterface.cpp +++ b/src/xwindowinterface.cpp @@ -166,7 +166,7 @@ void XWindowInterface::setViewStruts(QWindow *view, DockSettings::Direction dire const int bottomOffset { wholeScreen.bottom() - currentScreen.bottom() }; strut.bottom_width = rect.height() + bottomOffset + (roundedWindow ? DockSettings::self()->edgeMargins() : 0); strut.bottom_start = rect.x(); - strut.bottom_end = rect.x() + rect.width(); + strut.bottom_end = rect.x() + rect.width() - 1; break; } default: