From 218d005aaf461c164c4464c60d60cf23f5442c68 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 19 Mar 2009 21:50:30 +0000 Subject: [PATCH] Linux: Fixed failure to create window on newer ATI mesa drivers --- src/native/linux/org_lwjgl_opengl_Display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/native/linux/org_lwjgl_opengl_Display.c b/src/native/linux/org_lwjgl_opengl_Display.c index 483699ca..74fe4563 100644 --- a/src/native/linux/org_lwjgl_opengl_Display.c +++ b/src/native/linux/org_lwjgl_opengl_Display.c @@ -306,8 +306,9 @@ static Window createWindow(JNIEnv* env, Display *disp, int screen, jint window_m return false; cmap = XCreateColormap(disp, parent, vis_info->visual, AllocNone); attribs.colormap = cmap; + attribs.border_pixel = 0; attribs.event_mask = ExposureMask | FocusChangeMask | VisibilityChangeMask | StructureNotifyMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; - attribmask = CWColormap | CWEventMask; + attribmask = CWColormap | CWEventMask | CWBorderPixel; if (isLegacyFullscreen(window_mode)) { attribmask |= CWOverrideRedirect; attribs.override_redirect = True;