placement: if a window can't be placed maximized, place it centered

It's closer to what maximized does than minimal overlapping

BUG: 438572
This commit is contained in:
Xaver Hugl 2024-06-07 19:59:49 +02:00
parent 83502e29a9
commit f6540283d5

View file

@ -568,7 +568,7 @@ void Placement::placeMaximizing(Window *c, const QRect &area, PlacementPolicy ne
Q_ASSERT(area.isValid());
if (nextPlacement == PlacementUnknown) {
nextPlacement = PlacementSmart;
nextPlacement = PlacementCentered;
}
if (c->isMaximizable() && c->maxSize().width() >= area.width() && c->maxSize().height() >= area.height()) {
if (workspace()->clientArea(MaximizeArea, c) == area) {