From f6540283d541a48b6b3c3d94863ec4e01b920eb4 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Fri, 7 Jun 2024 19:59:49 +0200 Subject: [PATCH] placement: if a window can't be placed maximized, place it centered It's closer to what maximized does than minimal overlapping BUG: 438572 --- src/placement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/placement.cpp b/src/placement.cpp index f473a72a48..ed3b88f79d 100644 --- a/src/placement.cpp +++ b/src/placement.cpp @@ -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) {