[5/5] winex11: Use an offscreen redirected window for child OpenGL rendering

Alexandre Julliard julliard at winehq.org
Tue Sep 25 07:21:57 CDT 2007

Chris Robinson <chris.kcat at gmail.com> writes:

> With the child being parented to the main window, a BadWindow error sometimes 
> crops up on XDestroyWindow for the X11 child. I couldn't see why, but 
> parenting it to the root_window works. Would that be due to using gdi_display 
> for creating/destroying the child?

Maybe, but in any case making it a child of the root window is wrong.

> Is it safe to call XMoveResizeWindow even if the size didn't change, and have 
> X make it a no-op (or at least be negligible for processing time)? Calling to 
> resize the child window every time the hwnd simply moves (or whenever it 
> thinks it resized/moved) can cause it to be done unnecessarilly often.

No, you have all the info you need in SetWindowPos, there's no reason
to guess.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list