Fix one pixel

This commit is contained in:
cutefishd 2021-03-22 10:51:48 +08:00
parent 3d53224ebb
commit ea3cf393a5
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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: