Bug 448772

Summary: Window Placement gets reset to its default value when theme changes
Product: [Applications] systemsettings Reporter: redsolja <redsolja>
Component: kcm_lookandfeelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: asmit1212yadav, nate
Priority: NOR    
Version First Reported In: 5.23.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description redsolja@gmail.com 2022-01-19 13:32:21 UTC
SUMMARY
***
System Settings -> Window Management -> Window Behavior -> Advanced -> Window placement gets reset to "Minimal Overlapping" when theme is changed.
***


STEPS TO REPRODUCE
1. Change setting to be something other than "minimal overlapping"
2. Change theme
3. Logout and back in

OBSERVED RESULT
Windows are placed in random places instead of my setting ("Center")

EXPECTED RESULT
Windows should be placed where my setting initially instructed, "Center" (for me).

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux, plasma-desktop 5.23.5-1

KDE Plasma Version: plasma-desktop 5.23.5-1
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-01-19 14:13:35 UTC
"Minimal overlapping" was the systemwide default until Plasma 5.24, at which point it changed to Centered.

IIRC there's some logic to use the system's default when switching from one theme to another under certain circumstances.
Comment 2 Vlad Zahorodnii 2022-01-26 16:07:05 UTC
Yes, the placement policy option is affected by the current look-and-feel theme.
Comment 3 Nate Graham 2022-01-26 16:51:12 UTC
Which theme did you switch to that reset the window placement mode? All of them? Just a specific one?
Comment 4 Nate Graham 2022-01-27 00:29:07 UTC
Looks like it affects Breeze global themes. No window placement mode is specified in their `default` files, so this seems like a bug in the KCM.
Comment 5 Nate Graham 2022-01-27 00:29:17 UTC
*** Bug 449191 has been marked as a duplicate of this bug. ***