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

List:       kde-core-devel
Subject:    Re: applyMainWindowSettings bug?
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2008-05-05 16:31:56
Message-ID: 200805051831.56411.l.lunak () suse ! cz
[Download RAW message or body]

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@suse.cz , l.lunak@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
[prev in list] [next in list] [prev in thread] [next in thread] 

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