applyMainWindowSettings bug?

Lubos Lunak l.lunak at suse.cz
Mon May 5 17:31:56 BST 2008


On Friday 02 of May 2008, Vladimir Prus wrote:
> Lubos Lunak wrote:
> >  No. If  memory serves me well, that's actually what happens and what is
> > causing the problem. The resizing in your step 2. actually happens
> > _after_ the window is shown and maximized by the window manager, because
> > of Qt's delayed layout activation (or whatever it is exactly that
> > triggers it so late).
>
> In the real KDevelop case, it's indeed QLayout::activate that calls
> setMinimumSize.
>
> > So the window is first maximized by the window manager and then the
> > application immediatelly asks to be resized again (and width()/height()
> > still return old size because of X being asynchronous).
>
> Is there no way to sync with X? Any possible workarounds?

 Probably not simpler than actually fixing. I'd expect this to be fixed by 
just processing posted events for the window before it's shown.

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz




More information about the kde-core-devel mailing list