[KDE/Mac] Qt4/KDE4 issue with persistent window size across restarts on OS X 10.9

Jeremy Whiting jpwhiting at kde.org
Fri Feb 13 16:42:21 UTC 2015


Rene,

As you describe this problem, the first thing that comes to mind is
KMainWindow's restoreWindowSize and saveWindowSize
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKMainWindow.html#a4a6636a6282a3f38f76fd8a7f4fe5fb3
which are usually called from ctor and dtor from what I remember when the
applications I maintained were kdelibs4 based.

On Fri, Feb 13, 2015 at 8:44 AM, René J.V. <rjvbertin at gmail.com> wrote:

> Hello,
>
> 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.
> 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.
>
> 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.
>
> NB: come to think of it, KDE4 applications never restored their last
> position correctly for me.
>
> 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).
>
> Thanks,
> René
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://community.kde.org/Mac
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20150213/241ecc45/attachment.html>


More information about the kde-mac mailing list