Bug 412885 - Okular does not remember window position
Summary: Okular does not remember window position
Status: RESOLVED DUPLICATE of bug 415150
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.8.1
Platform: Other Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-12 17:50 UTC by Adiost
Modified: 2020-02-28 03:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***