<?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>63276</bug_id>
          
          <creation_ts>2003-08-26 13:11:31 +0000</creation_ts>
          <short_desc>Konqueror doesn&apos;t remember size and position of its window between restarts</short_desc>
          <delta_ts>2008-06-23 10:43:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>RedHat Enterprise Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir Kondratyev">vova</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>faure</cc>
    
    <cc>l.lunak</cc>
    
    <cc>null</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>150</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>154314</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir Kondratyev">vova</who>
    <bug_when>2003-08-26 13:11:32 +0000</bug_when>
    <thetext>Version:           Konqueror 3.1.3-09x.2 Red Hat (Using KDE 3.1.3-0.9x.4 Red Hat) (using KDE KDE 3.1.3)
Installed from:    RedHat RPMs
Compiler:          gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 
OS:          Linux

As it&apos;s already said in a short description, Konqueror doesn&apos;t remember size and position of it&apos;s window between restarts. It&apos;s very annoying bacause Konqueror on every sturtup opens small window at the top left corner of the screen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154318</commentid>
    <comment_count>1</comment_count>
    <who name="Lubos Lunak">l.lunak</who>
    <bug_when>2003-08-26 13:53:33 +0000</bug_when>
    <thetext>You can save the window size when saving the various profiles in the Settings menu. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154323</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir Kondratyev">vova</who>
    <bug_when>2003-08-26 14:11:59 +0000</bug_when>
    <thetext>Yes, but I wish that Konqueror has the same window size as I leave it last time.
It&apos;s natural to expect such behaviour and not natural (IMHO) to go to some
profile and save it only to store size of the window. Many applications remember
size of its windows and this is very convenient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154329</commentid>
    <comment_count>3</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2003-08-26 14:30:18 +0000</bug_when>
    <thetext>Subject: Re:  Konqueror doesn&apos;t remember size and position of its window between restarts

On Tuesday 26 August 2003 08:12, Vladimir Kondratyev wrote:
&gt; ------- Yes, but I wish that Konqueror has the same window size as I leave
&gt; it last time. It&apos;s natural to expect such behaviour and not natural (IMHO)
&gt; to go to some profile and save it only to store size of the window. Many
&gt; applications remember size of its windows and this is very convenient.

  And if javascript resizes the window on you?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154330</commentid>
    <comment_count>4</comment_count>
    <who name="Vladimir Kondratyev">vova</who>
    <bug_when>2003-08-26 14:47:59 +0000</bug_when>
    <thetext>If javascript resizes window then it&apos;s OK. Last size should be remembered.

First of all if javascrip resized windows and I didn&apos;t chage its size and close
it then I agree that window size is OK, otherwise I&apos;d change window size (it&apos;s a
kind of logic of most of people operate). The second point is how often
javascript resizes  main konqueror window? It seems that such supposition looks
like a theory which rarely happen in practice :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154331</commentid>
    <comment_count>5</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2003-08-26 14:50:04 +0000</bug_when>
    <thetext>Subject: Re:  Konqueror doesn&apos;t remember size and position of its window between restarts

On Tuesday 26 August 2003 08:48, Vladimir Kondratyev wrote:
&gt; ------- If javascript resizes window then it&apos;s OK. Last size should be
&gt; remembered.
&gt;
&gt; First of all if javascrip resized windows and I didn&apos;t chage its size and
&gt; close it then I agree that window size is OK, otherwise I&apos;d change window
&gt; size (it&apos;s a kind of logic of most of people operate). The second point is
&gt; how often javascript resizes  main konqueror window? It seems that such
&gt; supposition looks like a theory which rarely happen in practice :)

  You never go to warez/mp3/porn sites?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154333</commentid>
    <comment_count>6</comment_count>
    <who name="Vladimir Kondratyev">vova</who>
    <bug_when>2003-08-26 15:08:18 +0000</bug_when>
    <thetext>Visiting porn site is not my main work and I was always thinking that Konqueror
is being developed not for for pornserfers only. Some  people use Konqueror for
file browsing, image previwing, etc, and warring about javascript is a bit
strange in this case.

Anyway (as I&apos;ve already said) &quot;if javascrip resized windows and I didn&apos;t chage
its size and
close it then I agree that window size is OK, otherwise I&apos;d change window
size (it&apos;s a kind of logic of most of people operate)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174745</commentid>
    <comment_count>7</comment_count>
    <who name="Davide Ferrari">vide80</who>
    <bug_when>2003-11-10 14:47:37 +0000</bug_when>
    <thetext>I agree with Vladimir!
And about JS, I think simply Konqui does not have to save position if the last window opened was a pop-up. In all other case, I expect as normal behaviour to save last window size (and position too) as lots of other KDE apps do. Without having to save a particular profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174804</commentid>
    <comment_count>8</comment_count>
    <who name="Vladimir Kondratyev">vova</who>
    <bug_when>2003-11-10 16:43:30 +0000</bug_when>
    <thetext>To have some profilers for managing window sizes is a GUI blooper. It&apos;s very complex for ordinar user. Personally I do not use Konqueror any more. It&apos;s very annoying that simpliest things are very difficult to configure. I&apos;m using Firebird now and happy with it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224947</commentid>
    <comment_count>9</comment_count>
    <who name="Diederik van der Boor">vdboor</who>
    <bug_when>2004-04-19 09:16:30 +0000</bug_when>
    <thetext>Isn&apos;t it possible to have a &quot;Save window positions&quot; in the konqueror settings menu? Currently I&apos;ve hacked to file management preview to give my filemanagement profile the same windows size as the webbrowser profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283415</commentid>
    <comment_count>10</comment_count>
    <who name="mhn">c_mhn</who>
    <bug_when>2004-11-06 18:04:17 +0000</bug_when>
    <thetext>Really, every normal app I can think of (kde or not) restores its last size when you start it. I don&apos;t know if somebody already put this in the kde guidelines, but it&apos;s a de facto standard anyway.
Just think of this - how many people will ever discover that they can &quot;save and load profiles&quot;? Profiles should be for toolbars etc (and in that case they are useful), not for size and position. How many of the users who discover this will not get annoyed by it and drop konq altogether?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339945</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Strandman">simon.strandman</who>
    <bug_when>2005-05-06 15:17:03 +0000</bug_when>
    <thetext>I agree, nautilus in gnome and even explorer in windows can do this. Konqueror needs this feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373524</commentid>
    <comment_count>12</comment_count>
    <who name="Gregory Stark">gsstark</who>
    <bug_when>2005-09-16 20:05:06 +0000</bug_when>
    <thetext>I have no problem with profiles, nice feature. But if I don&apos;t save a profile where is konqueror coming up with the default. It seems to be entirely random. Previously it always came up in a tiny window, now I&apos;ve upgraded and it&apos;s opening every window in a huge window that covers my entire 21&quot; monitor. You should at least pick a reasonable default and the size from the last user resize is as good a default as any. Certainly better than an arbitrary size picked with no user input.

Incidentally, I&apos;m a C programmer and I use konqueror for web development. It never occurred to me once that &quot;save profile&quot; might help this situation. Instead I hacked my window manager to have a key to resize konqueror windows to a sane size. I just got used to hitting that key every time I opened a konqueror window. It annoyed me quite a bit; can you imagine how frustrating it would be for a newbie?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373590</commentid>
    <comment_count>13</comment_count>
    <who name="Gregory Stark">gsstark</who>
    <bug_when>2005-09-17 02:14:10 +0000</bug_when>
    <thetext>And just to add insult to injury saving the profile doesn&apos;t actually work here. I resized a window to my normal 800x1024 and &lt;&lt;save view profile &quot;Web Browsing&quot;&gt;&gt; (which brings up a surprise dialog box, the purpose of which is unclear given that the menu item claimed to be saving a specific profile.) I click Ok.

Then I close the window and start a new konqueror. And it pops up in a completely random size. 700x480 to be precise. What orifice did this get pulled from?!

Well at least it&apos;s better than what it was before, which was something like 1280x1000 which was just silly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>381972</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Stather">kontakt</who>
    <bug_when>2005-10-17 01:34:52 +0000</bug_when>
    <thetext>Konqueror does remember e.g. the &quot;view hidden files&quot; between starts, so I also think it´s completely UNLOGICAL why it doesn´t remember window sizes
IMHO the address of the profile should be saveable like it is &quot;via menu&quot;, but the window size should always be saved in the appropriate profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>496998</commentid>
    <comment_count>15</comment_count>
    <who name="Martin Koller">martin</who>
    <bug_when>2006-12-30 18:12:37 +0000</bug_when>
    <thetext>*** Bug 27966 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>501432</commentid>
    <comment_count>16</comment_count>
    <who name="Martin Koller">martin</who>
    <bug_when>2007-01-14 14:59:34 +0000</bug_when>
    <thetext>Fixed it now for 3.5.6 and KDE 4:

save and restore last known window size if the profile currently
used does not have the size in it.

The position is not stored, as I got the comment that the application
shall only take care about the size, but the position is a case for
the window manager. Other KDE apps seem also to only store the size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>501433</commentid>
    <comment_count>17</comment_count>
    <who name="Martin Koller">martin</who>
    <bug_when>2007-01-14 14:59:59 +0000</bug_when>
    <thetext>*** Bug has been marked as fixed ***.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>594926</commentid>
    <comment_count>18</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2008-04-18 18:35:15 +0000</bug_when>
    <thetext>SVN commit 798599 by dfaure:

Rework the way window settings (size and menubar/toolbar visibility) is handled in konqueror;
the KMainWindow autosave mechanism is now used directly with the profiles; so when you resize
a webbrowsing window it is now automatically saved into the webbrowsing profile, etc.
GUI: For this reason the checkbox &quot;save window size in profile&quot; is gone from the profile dialog.

CCBUG: 63276


 M  +0 -1      konqactions.cpp  
 M  +14 -0     konqmain.cpp  
 M  +66 -58    konqmainwindow.cpp  
 M  +7 -6      konqmainwindow.h  
 M  +28 -8     konqmisc.cpp  
 M  +43 -38    konqmisc.h  
 M  +1 -3      konqprofiledlg.cpp  
 M  +0 -7      konqprofiledlg_base.ui  
 M  +0 -6      konqueror.kcfg  
 M  +2 -2      konqview.cpp  
 M  +96 -131   konqviewmanager.cpp  
 M  +12 -11    konqviewmanager.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=798599
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614204</commentid>
    <comment_count>19</comment_count>
    <who name="Stefan Monov">logixoul</who>
    <bug_when>2008-06-21 22:13:39 +0000</bug_when>
    <thetext>Hi David. About this:
applyWindowSizeFromProfile(profileGroup);

I don&apos;t see why you added it. We don&apos;t wanna touch the current window just because we&apos;re opening a new one.

Indeed, it introduces a bug (visible from r813647 onwards): JS calls to window.open() resize the calling window, which is totally not expected :-)
Testcase: &lt;a onclick=&quot;window.open(&apos;&apos;,&apos;&apos;,&apos;&apos;)&quot;&gt;Click me&lt;/a&gt;

My solution is simply to remove that line; what do you say?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614684</commentid>
    <comment_count>20</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2008-06-23 10:43:49 +0000</bug_when>
    <thetext>SVN commit 823384 by dfaure:

oops, resize the new mainwindow, not the calling one, thanks Stefan Monov for spotting.
CCBUG:63276


 M  +1 -1      konqmainwindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=823384
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>