[wx-dev] Re: Re: recent wxGTK fatal window sizing bug
Vadim Zeitlin
vadim at wxwidgets.org
Sun Dec 2 13:12:45 PST 2007
On Sun, 2 Dec 2007 23:05:45 +0200 Nerijus Baliunas <nerijusb at dtiltas.lt> wrote:
NB> On Sun, 2 Dec 2007 12:17:00 -0800 Paul Cornett <pc-wx at bullseye.com> wrote:
NB>
NB> > > I tried using _NET_REQUEST_FRAME_EXTENTS some time ago and it didn't
NB> > > help. But looking at it again, I think I may know what was going
NB> > > wrong. I'll do some more experimenting.
NB> >
NB> > OK, I found a way to use _NET_REQUEST_FRAME_EXTENTS, by deferring the
NB> > window show until the _NET_FRAME_EXTENTS notification arrives. Checked
NB> > in now.
Thanks a lot Paul for working on this, it would be really great if it gave
correct results without anything special to do.
NB> Mahogany window still grows at every restart.
I didn't have time to test it myself yet so I don't know why does it work
for you but not Nerijus, all I can say is that Mahogany basically stores
the results of GetPosition() and GetSize() in wxConfig in frame dtor (there
are also checks for iconized/maximized status but they're probably not
relevant here) and uses the numbers read from wxConfig in wxFrame ctor.
Thanks,
VZ
More information about the wx-dev
mailing list