Linux: Fixed failure to create window on newer ATI mesa drivers

This commit is contained in:
Elias Naur 2009-03-19 21:50:30 +00:00
parent 97c038cd06
commit 218d005aaf
1 changed files with 2 additions and 1 deletions

View File

@ -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;