<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>412885</bug_id>
          
          <creation_ts>2019-10-12 17:50:36 +0000</creation_ts>
          <short_desc>Okular does not remember window position</short_desc>
          <delta_ts>2020-02-28 03:54:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>okular</product>
          <component>general</component>
          <version>1.8.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>415150</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=409675</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adiost">me</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>aacid</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1885117</commentid>
    <comment_count>0</comment_count>
    <who name="Adiost">me</who>
    <bug_when>2019-10-12 17:50:36 +0000</bug_when>
    <thetext>SUMMARY
Main window does not restore its position after reopening. It does remember its size.

STEPS TO REPRODUCE
1. Change main window&apos;s position after opening Okular
2. Close and reopen Okular

OBSERVED RESULT
The position is not preserved, instead the window opens with it&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885965</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-10-16 22:33:15 +0000</bug_when>
    <thetext>Yep, this is up to the application to store and remember (on both Windows and Linux).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886256</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2019-10-17 20:01:43 +0000</bug_when>
    <thetext>Completely disagree, it&apos;s none of the applications responsibility to position itself. Let the window manager do it&apos;s job.

Moreover in any sane modern windowing system you can&apos;t know where you are, so you can&apos;t restore yourself either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886261</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-10-17 20:05:39 +0000</bug_when>
    <thetext>KWin developers say it&apos;s the application&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886267</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-10-17 20:57:20 +0000</bug_when>
    <thetext>(In reply to Albert Astals Cid from comment #2)
&gt; Completely disagree, it&apos;s none of the applications responsibility to
&gt; position itself. Let the window manager do it&apos;s job.
&gt; 
&gt; Moreover in any sane modern windowing system you can&apos;t know where you are,
&gt; so you can&apos;t restore yourself either.
That&apos;s exactly that I would have said too, except for KWin&apos;s developers feel pretty strongly that it&apos;s not the window manager&apos;s job to remember window positions. See Bug 15329.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913537</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-02-28 03:54:13 +0000</bug_when>
    <thetext>Found out that KXMLGui is supposed to be doing this.

*** This bug has been marked as a duplicate of bug 415150 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>