[KDE/Mac] [Interest] Qt4/KDE4 issue with persistent window size across restarts on OS X 10.9
René J.V. Bertin
rjvbertin at gmail.com
Fri Feb 13 17:41:58 UTC 2015
On Friday February 13 2015 18:24:44 Christoph Feck wrote:
> Nope, it is a KDE feature, mainly because we differentiate between
> three maximization modes.
Not a KDE-specific feature: on OS X, Qt applications remember their window position and size across restarts.
> > NB: come to think of it, KDE4 applications never restored their
> > last position correctly for me.
> Only the size is saved. The position is decided by the window manager.
> To force a specific position, you can use KWin's window rules.
And how would I use KWin's window rules on OS X? :)
OS X is comparable to MS Windows in that it doesn't have a window manager that conforms to Freedesktop-like session management (or however you call it).
I've had a look at the functions Jeremy mentioned, and sure enough it turns out they have an MS Windows specific implementation. On OS X, we get to use the X11 code, which may explain the main-screen-only issue I mentioned. It doesn't seem unlikely that the code only knows about the main screen (at least the way it's written, but I have no idea whatsoever if there is multi-monitor support in KDE on OS X).
On a related note: why is autoSaveSettings set to 1 (true) at its declaration in the header file, but then to false in KMainWindowPrivate::init()? Am I going to want to set it to true on OS X?
More information about the kde-mac