Bug 438572 - Being able to set that if a window can't get spawned maximized that you can set that it spawns centered
Summary: Being able to set that if a window can't get spawned maximized that you can s...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-13 20:27 UTC by Toadfield
Modified: 2024-06-08 02:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toadfield 2021-06-13 20:27:10 UTC
In window behavior I set that windows spawn maximized,but the problem is that some windows can't be maximized,so they spawn in weird locations or randomly.
I want that I can set that they spawn centered.
Comment 1 Nate Graham 2021-06-15 20:20:24 UTC
This would require being able to set some kind of fallback window placement mode, or else just changing the Maximized placement mode to fall back to Centered if maximization fails. Seems reasonable.
Comment 2 Bug Janitor Service 2024-06-07 18:00:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5857
Comment 3 Zamundaaa 2024-06-07 18:52:53 UTC
Git commit f6540283d541a48b6b3c3d94863ec4e01b920eb4 by Xaver Hugl.
Committed on 07/06/2024 at 17:59.
Pushed by zamundaaa into branch 'master'.

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

It's closer to what maximized does than minimal overlapping

M  +1    -1    src/placement.cpp

https://invent.kde.org/plasma/kwin/-/commit/f6540283d541a48b6b3c3d94863ec4e01b920eb4
Comment 4 Zamundaaa 2024-06-07 19:04:38 UTC
Git commit 15ffcda06edb64eefc90dd96da79e9c465449437 by Xaver Hugl.
Committed on 07/06/2024 at 18:53.
Pushed by zamundaaa into branch 'Plasma/6.1'.

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

It's closer to what maximized does than minimal overlapping


(cherry picked from commit f6540283d541a48b6b3c3d94863ec4e01b920eb4)

Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com>

M  +1    -1    src/placement.cpp

https://invent.kde.org/plasma/kwin/-/commit/15ffcda06edb64eefc90dd96da79e9c465449437