mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
Bug fixes for 0.20.3 pre-release 2
This commit is contained in:
@@ -494,8 +494,16 @@ RCreateContext(Display *dpy, int screen_number, RContextAttributes *attribs)
|
||||
}
|
||||
|
||||
if (context->attribs->use_shared_memory) {
|
||||
if (!XShmQueryExtension(context->dpy)) {
|
||||
int major, minor;
|
||||
Bool sharedPixmaps;
|
||||
|
||||
context->flags.use_shared_pixmap = 0;
|
||||
|
||||
if (!XShmQueryVersion(context->dpy, &major, &minor, &sharedPixmaps)) {
|
||||
context->attribs->use_shared_memory = False;
|
||||
} else {
|
||||
if (XShmPixmapFormat(context->dpy)==ZPixmap)
|
||||
context->flags.use_shared_pixmap = sharedPixmaps;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user