x11window: revert more from 3a28c02f

BUG: 461032
This commit is contained in:
Xaver Hugl 2022-10-26 21:43:41 +02:00
parent 1dcbc3c6f8
commit 2997fb24bb

View file

@ -4509,11 +4509,10 @@ void X11Window::maximize(MaximizeMode mode)
} }
} }
r.moveTopLeft(rules()->checkPosition(r.topLeft())); r.moveTopLeft(rules()->checkPosition(r.topLeft()));
// The above code tries to center align the window followed by setting top and bottom
// it's possible that we're in between two pixels
r.setX(Xcb::nativeFloor(r.x()));
r.setY(Xcb::nativeFloor(r.y()));
} }
// The above code tries to center align the window followed by setting top and bottom
// it's possible that we're in between two pixels
r = Xcb::nativeFloor(r);
moveResize(r); moveResize(r);
if (options->electricBorderMaximize() && r.top() == clientArea.top()) { if (options->electricBorderMaximize() && r.top() == clientArea.top()) {