Bug 412885

Summary: Okular does not remember window position
Product: [Applications] okular Reporter: Adiost <me>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: minor CC: aacid, nate
Priority: NOR    
Version: 1.8.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
See Also: https://bugs.kde.org/show_bug.cgi?id=409675
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Adiost 2019-10-12 17:50:36 UTC
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
Comment 1 Nate Graham 2019-10-16 22:33:15 UTC
Yep, this is up to the application to store and remember (on both Windows and Linux).
Comment 2 Albert Astals Cid 2019-10-17 20:01:43 UTC
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.
Comment 3 Christoph Feck 2019-10-17 20:05:39 UTC
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.
Comment 4 Nate Graham 2019-10-17 20:57:20 UTC
(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.
Comment 5 Nate Graham 2020-02-28 03:54:13 UTC
Found out that KXMLGui is supposed to be doing this.

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