question about KMainWindow::restoreWindowSize
Lubos Lunak
l.lunak at suse.cz
Wed Oct 22 09:05:50 BST 2003
On Tuesday 21 of October 2003 03:54, Matt Rogers wrote:
> On Monday 20 October 2003 07:39 am, Lubos Lunak wrote:
> > 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?
>
> I could reproduce the problem yesterday, but now I can't after rebuilding
> kde However, if you want to try to reproduce, here are the steps:
>
> 1. Start Kate
> 2. If it's not somehow maximized already, maximize it.
> 3. Close Kate
> 4. Start Kate again, and watch the window not appear maximized.
I can see the window appear as maximized for a short moment, so it's clearly
the application that tries to resize itself again.
--
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