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:
parent
83502e29a9
commit
f6540283d5
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ void Placement::placeMaximizing(Window *c, const QRect &area, PlacementPolicy ne
|
||||||
Q_ASSERT(area.isValid());
|
Q_ASSERT(area.isValid());
|
||||||
|
|
||||||
if (nextPlacement == PlacementUnknown) {
|
if (nextPlacement == PlacementUnknown) {
|
||||||
nextPlacement = PlacementSmart;
|
nextPlacement = PlacementCentered;
|
||||||
}
|
}
|
||||||
if (c->isMaximizable() && c->maxSize().width() >= area.width() && c->maxSize().height() >= area.height()) {
|
if (c->isMaximizable() && c->maxSize().width() >= area.width() && c->maxSize().height() >= area.height()) {
|
||||||
if (workspace()->clientArea(MaximizeArea, c) == area) {
|
if (workspace()->clientArea(MaximizeArea, c) == area) {
|
||||||
|
|
Loading…
Reference in a new issue