Ticket #3900 (closed defect: fixed)
BadMatch error when reparenting glcanvas in wxGTK 2.8.0
| Reported by: | gverbruggen | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxGTK | Version: | |
| Keywords: | Cc: | gverbruggen | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
When a wxGLCanvas is reparented in wxGTK 2.8.0, the following X error occurs:
(reparenttest:6450): Gdk-WARNING **: gdkdrawable-x11.c:904 drawable is not a pixmap or window
(reparenttest:6450): Gdk-WARNING **: gdkdrawable-x11.c:904 drawable is not a pixmap or window
The program 'reparenttest' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 1303 error_code 8 request_code 144 minor_code 26)
Attached is a small program that triggers the crash. (2 frames and a button. When the button is pressed, a GLCanvas is reparented from the left frame to the right frame and vice versa)
The program works fine with wxGTK 2.7.0 and crashes with wxGTK 2.8.0.
You get a similar error when you try to drag a wxAUI managed wxGLCanvas.

