[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: question about KMainWindow::restoreWindowSize
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2003-10-20 12:39:39
[Download RAW message or body]

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@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic