SUMMARY Main window does not restore its position after reopening. It does remember its size. STEPS TO REPRODUCE 1. Change main window's position after opening Okular 2. Close and reopen Okular OBSERVED RESULT The position is not preserved, instead the window opens with it's upper left corner somewhere in the middle of the screen, even if it makes it overflow. EXPECTED RESULT The window opens in the same position it was closed in. SOFTWARE/OS VERSIONS Windows: 10 1903 Ver. 1.8.1 installed Windows Store ADDITIONAL INFORMATION Bug 409675 could be related
Yep, this is up to the application to store and remember (on both Windows and Linux).
Completely disagree, it's none of the applications responsibility to position itself. Let the window manager do it's job. Moreover in any sane modern windowing system you can't know where you are, so you can't restore yourself either.
KWin developers say it's the application's job to request placement. IMHO the toolkit should bridge both expectations, and from what I know, KMainWindow used to help there. Not sure what the replacement for Qt5 was.
(In reply to Albert Astals Cid from comment #2) > Completely disagree, it's none of the applications responsibility to > position itself. Let the window manager do it's job. > > Moreover in any sane modern windowing system you can't know where you are, > so you can't restore yourself either. That's exactly that I would have said too, except for KWin's developers feel pretty strongly that it's not the window manager's job to remember window positions. See Bug 15329.
Found out that KXMLGui is supposed to be doing this. *** This bug has been marked as a duplicate of bug 415150 ***