summaryrefslogtreecommitdiff
path: root/libGL/client_glx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libGL/client_glx.c')
-rwxr-xr-xlibGL/client_glx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libGL/client_glx.c b/libGL/client_glx.c
index 77a9c76..dd23ea1 100755
--- a/libGL/client_glx.c
+++ b/libGL/client_glx.c
@@ -511,9 +511,12 @@ static void _get_window_info(Display *dpy, Window win, WindowInfoStruct* info)
#ifndef XCB_EVENT_ERROR_BAD_MATCH
#define XCB_EVENT_ERROR_BAD_MATCH 8
+#define XCB_EVENT_ERROR_BAD_WINDOW 3
#endif
/* BAD_MATCH indicate the drawable is PIXMAP instead of window */
- if ( !attr && error->error_code != XCB_EVENT_ERROR_BAD_MATCH )
+ if ( !attr &&
+ error->error_code != XCB_EVENT_ERROR_BAD_MATCH &&
+ error->error_code != XCB_EVENT_ERROR_BAD_WINDOW )
{
info->width = 0;
info->height= 0;