<div dir="ltr">Rene,<div><br></div><div>As you describe this problem, the first thing that comes to mind is KMainWindow's restoreWindowSize and saveWindowSize <a href="http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKMainWindow.html#a4a6636a6282a3f38f76fd8a7f4fe5fb3">http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKMainWindow.html#a4a6636a6282a3f38f76fd8a7f4fe5fb3</a> which are usually called from ctor and dtor from what I remember when the applications I maintained were kdelibs4 based.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 8:44 AM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I stumbled across a rather strange issue with window size caching/memory across application restarts. I'm used to the fact that my applications retain their last window size after a restart After I had to replace my external monitor, applications began opening with a size other than the one they had before, and for some reason I couldn't make the intended size stick.<br>
Purely by accident I noticed that this is only when I resize and then exit them on my laptops internal screen, which happens to be the 2ndary screen (i.e. the one that doesn't have the menubar). When I move the application (or window for multi-window apps?) back to the main screen and then exit it, size is remembered perfectly.<br>
<br>
I checked, this is only an issue with KDE4 applications, pure Qt4 applications (like Assistant) appear not to be affected. I am not aware of anything particular that KDE4 does to be able to restore window size and position; I was under the impression that this feature was inherited directly from Qt.<br>
<br>
NB: come to think of it, KDE4 applications never restored their last position correctly for me.<br>
<br>
Is there somewhere I could look for missing code required for (full) support of window size & position restore, or rather is there a call to deactivate it that I should look for? It seems not unlikely that restoring is deactivated in, say, kdelibs, because it's supposed to be handled by the window or session manager on Linux desktops. That would evidently not be appropriate on OS X (or MS Windows).<br>
<br>
Thanks,<br>
René<br>
_______________________________________________<br>
<a href="mailto:kde-mac@kde.org">kde-mac@kde.org</a><br>
List Information: <a href="https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac" target="_blank">https://mail.kde.org/mailman/listinfo/kde-mac<br>
KDE/Mac</a> Information: <a href="http://community.kde.org/Mac" target="_blank">http://community.kde.org/Mac</a><br>
</blockquote></div><br></div>