| Summary: | windows always launch in random position | ||
|---|---|---|---|
| Product: | [Unmaintained] Active Window Control | Reporter: | alexandrevalin2 <alexandrevalin2> |
| Component: | General | Assignee: | Chris Holland <zrenfire> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | minor | CC: | nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
alexandrevalin2@gmail.com
2023-09-11 01:27:00 UTC
So the way window placement works is as follows: On Wayland, all windows place themselves according to its placement policy, which is user-controllable. The setting lives in System Settings > Window Management > Window Behavior > Advanced. Feel free to change it to whatever you like best. The current default value is "Centered" which was changed in the last year or two from the old default value of "Smart" which indeed tended to place windows in a way that looked random. It sounds like you may still be using Smart? Feel free to change it. On X11--including for XWayland apps run in a Wayland session--things are more complicated. On X11, apps are allowed to place themselves on the screen--but they aren't required to. If a window doesn't, only then does KWin place it according to its placement policy described earlier. KWin could in theory ignore this and forcibly place X11 windows according to its placement policy, like on Wayland. But doing so unconditionally would not only break the spec, but in practice it would also break apps that were developed with the expectation of being able to place their own windows wherever they want, so instead this is an opt-in thing that you as the user have to turn on via the Window Rules system. Because that would be annoying, many X11 apps implement their own "remember my window positions" feature. It sounds like some or all of the apps you mentioned are using that feature. Sorry or not being clear. I meant that some apps will launch in random positions, but they will always launch in that position. I tried to change the window launch behaviour and it fixed some of the apps. Is there a way to fore apps to not use their "remember my window positions"? For KDE apps, you can uncheck the checkbox for "allow apps to remember their window positions" which is on the same page as where you can change the default positioning mode. For non-KDE apps, you'll have to use Window Rules. If you need help with that, I'd recommend asking in https://discuss.kde.org/c/help/6. |