Bug 429134

Summary: Kmail doesn't remember window position after session restore
Product: [Applications] kmail2 Reporter: Matthias Mueller <mat.mueller>
Component: UIAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.15.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthias Mueller 2020-11-15 09:43:36 UTC
SUMMARY

I use session restore on reboot and usually have kmail on the right half of my second monitor. After boot, kmail is opened in the top left corner of the main screen. Exiting Kmail and starting it (or closing the window and opening it from tray) works fine, the issue only occurs on boot. I'm not sure if its a kmail or kwin/plasma issue, but i only observed this behaviour on kmail yet.

To make matters worse, window rules don't work properly for kmail (i tried "apply on initialization" for position and size) - reported in https://bugs.kde.org/show_bug.cgi?id=381257


STEPS TO REPRODUCE
1. position kmail main window to your hearts content 
2. reboot with option "restore session" active
3. observe wrong placement of kmail main window

OBSERVED RESULT
Kmail is positioned in the top left corner of the main screen

EXPECTED RESULT
Kmail should be where it was on shutdown

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro testing
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Comment 1 Matthias Mueller 2020-11-17 15:05:08 UTC
I have to add to that report - it seems that Kmail now remembers the position it had when exiting kmail through the tray. So that might be a workaround if someone encounters the same problem :)