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.
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.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5857
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
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