Fix one pixel
This commit is contained in:
parent
3d53224ebb
commit
ea3cf393a5
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ ControlCenterDialog {
|
||||||
|
|
||||||
// right
|
// right
|
||||||
if (posX + control.width > Screen.width)
|
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
|
// bottom
|
||||||
if (posY > control.height > Screen.width)
|
if (posY > control.height > Screen.width)
|
||||||
|
|
|
@ -166,7 +166,7 @@ void XWindowInterface::setViewStruts(QWindow *view, DockSettings::Direction dire
|
||||||
const int bottomOffset { wholeScreen.bottom() - currentScreen.bottom() };
|
const int bottomOffset { wholeScreen.bottom() - currentScreen.bottom() };
|
||||||
strut.bottom_width = rect.height() + bottomOffset + (roundedWindow ? DockSettings::self()->edgeMargins() : 0);
|
strut.bottom_width = rect.height() + bottomOffset + (roundedWindow ? DockSettings::self()->edgeMargins() : 0);
|
||||||
strut.bottom_start = rect.x();
|
strut.bottom_start = rect.x();
|
||||||
strut.bottom_end = rect.x() + rect.width();
|
strut.bottom_end = rect.x() + rect.width() - 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue