Bug 427867

Summary: Several KDE apps always open maximized when "Allow KDE apps to remember the positions of their own windows" is enabled in "Window behavior" kcm
Product: [Frameworks and Libraries] frameworks-kxmlgui Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=427610
https://bugs.kde.org/show_bug.cgi?id=427681
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: dolphinrc file

Description Patrick Silva 2020-10-17 14:37:35 UTC
SUMMARY
Affected KDE apps:
Dolphin
Konsole
Kinfocenter
System Settings
Ark

Not affected KDE apps:
Kate
Gwenview

STEPS TO REPRODUCE
1. make sure "Allow KDE apps to remember the positions of their own windows"  option is checked in "Advanced" tab of "Window behavior" kcm
2. open any affected app mentioned above and restore its window
3. re-open the app used in the step 2

OBSERVED RESULT
the app opens maximized

EXPECTED RESULT
the app should remember its window size after the step 2

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.0
Comment 1 Nate Graham 2020-10-21 04:33:30 UTC
> and restore its window
Can you clarify what this means?

Are these apps maximized when closed?

I will fix this bug ASAP as soon as I have a reproducible case, which is why I'd really like to find one. :)
Comment 2 Patrick Silva 2020-10-21 15:32:45 UTC
(In reply to Nate Graham from comment #1)
> > and restore its window
> Can you clarify what this means?
> 
> Are these apps maximized when closed?
> 
> I will fix this bug ASAP as soon as I have a reproducible case, which is why
> I'd really like to find one. :)

clearer steps:
1. make sure "Allow KDE apps to remember the positions of their own windows"  option is checked in "Advanced" tab of "Window behavior" kcm
2. open any affected app mentioned above (it opens maximized on my system)
3. restore the window by clicking on "Restore" button of its window decoration
4. close the app
5. re-open the app

OBSERVED RESULT
the app opens maximized

EXPECTED RESULT
after the last step, the app should open with the window size restored
in the step 3, not maximized
Comment 3 Nate Graham 2020-10-21 17:23:30 UTC
I still cannot reproduce for any of those apps when following your instructions exactly. :(

I suspect this part is the key: 

> (it opens maximized on my system)
Was it supposed to open maximized? Was it maximized before? Can you attach the rc file of any or all the affected apps? e.g. ~/.config/dolphinrc
Comment 4 Patrick Silva 2020-10-21 17:55:33 UTC
Created attachment 132616 [details]
dolphinrc file

The affected apps open maximized regardless them were maximized before or not.
I'm attaching my dolphinrc file.
Comment 5 Nate Graham 2020-10-21 19:35:28 UTC
I thought so. Based on the config file, it's the same issue as Bug 426813.

Window-Maximized 1080x1920=true
Window-Maximized 900x1600=true

Those shouldn't be in there. I guess the problem is that these entries aren't being removed when the window is restored, or when it's somehow gotten de-maximized anyway.

*** This bug has been marked as a duplicate of bug 426813 ***