question about KMainWindow::restoreWindowSize

Matt Rogers matt at matt.rogers.name
Tue Oct 21 02:54:10 BST 2003


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.

Matt
-- 
"Ein says it's him, but Faye just yawns and says 'oh, please'"
        --Ed (Cowboy Bebop)




More information about the kde-core-devel mailing list