| Summary: | Window placement "Centered" doesn't work correctly | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Matthias Heinz <mh> |
| Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | CLOSED INTENTIONAL | ||
| Severity: | normal | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.7 | ||
| Target Milestone: | --- | ||
| Platform: | Debian unstable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Matthias Heinz
2023-09-20 10:22:43 UTC
This is indeed intentional. If you open two of the same size windows when using Centered mode, they'll overlap 100% and that's not exactly helpful and it's very confusing for non-experts. We're not planning to offer an opt-out for this. I also don't think this it worth documenting anywhere as it's self-documenting: the first time you see a window opened centered but cascaded, you learn about the cascading behavior. (In reply to Nate Graham from comment #1) > This is indeed intentional. If you open two of the same size windows when > using Centered mode, they'll overlap 100% and that's not exactly helpful and > it's very confusing for non-experts. We're not planning to offer an opt-out > for this. I know. And you added it, because your wife got used to it from using MacOS and that's why you are personally attached to this feature. (This is meant as a non-emotional statement of the current situation and not as an insult. Don't get me wrong here.) Still the name is missleading. I would expect the name to open all windows centered. And minimized windows aren't taken into account at all (this could be intentional, but defeats the logic of cascading windows with the same size). And it fights with some applications that set their own window position, but could be a bug on their side not kwin. (Like konsole apparently). If you're referring to the logic used to justify this change in https://invent.kde.org/plasma/kwin/-/commit/6b949cac02c5a7216bb07b55c347194647030307, let me quote the full paragraph for context: > As a result, I commonly see Plasma users open windows and then > immediately, reflexively grab the window's titlebar and drag it to the > center of the screen. I have seen my wife do this. I have seen every > YouTube reviewer of Plasma do this. I have even see fellow KDE > developers at sprints do this. It seems like quite a common impulse > to want a newly-opened window to appear in the center of the screen, > which is where the user is likely to already be looking. The feature does not fight with windows that set their own position. On X11, such windows override the KWin window positioning behavior, which is only invoked when the windows does not set its own position. On Wayland, windows cannot set their own positions and KWin is always in charge, so again, no fighting with one another. If the cascading behavior causes windows to be cascaded when they would overlap with windows occupying the same location that are minimized, that's a bug that we should fix, rather than intentional behavior. But I can't reproduce it on Plasma 6 Wayland. |