[wx-dev] 2.8.5 rc2, wxGTK top level positioning
Paul Cornett
pc-wx at bullseye.com
Wed Aug 29 10:05:55 PDT 2007
Robert Roebling wrote:
>
> OK, what does you change in SVN mean now for us?
Nothing. AFAICT, there is no way to know the size of the WM decorations
until the window is shown (or slightly earlier using
_NET_FRAME_EXTENTS). You can ask the WM for an earlier estimate with
_NET_REQUEST_FRAME_EXTENTS, but it's not nearly early enough for our
needs. Caching decoration sizes works, but only for TLWs with the
same decoration request created after the first is shown. In my
testing, using an estimate for the first one caused problems if it
wasn't exactly correct. So there is no way to do it right for the main
frame.
I'm working on the caching idea, but IMO, it would be better if
wxWidgets sizes for TLWs did not include the WM decorations (which is
how it used to be for wxGTK) because it just can't be done right, the X
Window system does not support it.
More information about the wx-dev
mailing list