question about KMainWindow::restoreWindowSize

Lubos Lunak l.lunak at suse.cz
Mon Oct 20 13:39:39 BST 2003


On Sunday 19 of October 2003 16:01, Christoph Cullmann wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
> kate is using the restoreWindowSize methode to restore it's mainwindow size
> correctly, but if the katemainwindow was maximized, the restore fails.
> (you get a very small window, not full screen)
> looking at the kmainwindow code, as soon as a window is maximized in both
> directions, there is no resize done, instead only a KWin::setState(
> winId(), state ) is done (with the correct state NET::Max I guess).
> Atm I am not sure at which point this makes problems in katemainwindow (or
> kmdi), but my question is why there is no resize being done at all ?

 Because
- the resize shouldn't be necessary
- there's no size to restore to (because the maximalization state was saved as 
size equal to screen size+1)

 How can one reproduce the problem?

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/





More information about the kde-core-devel mailing list