| Summary: | Window Placement rule has no effect when "Remember app last position" option is enabled | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Yuri <yurialba> |
| Component: | rules | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | isma.af, nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.19.5 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/commit/231d96c5c6b1127c46702237d47a41a66f60f131 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Yuri
2020-11-07 12:22:50 UTC
This is happening when the new "Remember app last position" option is enabled. I don't know if it's possible to make both features co-exist on X11, since they're managed in a different place (kwin and the app itself) Is the option "Remember app last position" on by default? Cause even on live usb it is that way. Where is it configurabled? (all apps as the same result) On Kubuntu 20.04 and previous releases options on Window Placement work as expected. Yes it is on by default. Unfortunately Kubuntu 20.10 does not include the GUI to turn it off. You can turn it off yourself by adding AllowKDEAppsToRememberWindowPositions=false inside the [general] section of your ~/.config/kdeglobals file. Yeah, these features can't co-exist. Perhaps if the relevant window rule is set, KWin could automatically ignore the app's own positioning? Can it do that? There is currently a mechanism within Window Rules to avoid the application from setting its on position and size, which solves this use case. You need to add the property `Ignore Requested Geometry` and set it to `Force` `Yes`. I'm thinking of adding a hint to suggest users about setting this property when the conditions are met. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/574 Git commit 231d96c5c6b1127c46702237d47a41a66f60f131 by Ismael Asensio. Committed on 22/01/2021 at 17:18. Pushed by iasensio into branch 'master'. kcm/kwinrules: Add hint about ignore geometry Some applications set their own geometry after start, which overrides the initial rule settings for placement: position, size and initial placement. This happens now more often, after introducing the "Remember app last position" feature for KXMLgui apps. There is a mechanism to avoid that, by Forcing the rule property "Ignore geometry", but it is unknown to many users. This MR adds a hint when some rule properties might not be respected by the application, so users can set this property and hopefully avoid bug reports. M +12 -5 kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml M +58 -26 kcmkwin/kwinrules/rulesmodel.cpp M +7 -4 kcmkwin/kwinrules/rulesmodel.h https://invent.kde.org/plasma/kwin/commit/231d96c5c6b1127c46702237d47a41a66f60f131 |