applies patch for improved shm debugging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23484 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-09-13 05:00:08 +00:00
parent 3b5ee43d94
commit 012ff3eecb

View file

@ -95,6 +95,7 @@ static void test_xshm(Display *display, int drawing_depth)
DefaultVisual(display, DefaultScreen(display)), DefaultVisual(display, DefaultScreen(display)),
drawing_depth, ZPixmap, NULL, &shminfo, drawing_depth, ZPixmap, NULL, &shminfo,
1, 1); 1, 1);
XSync(display, False);
if (!ximage || num_xshm_test_errors) if (!ximage || num_xshm_test_errors)
{ {
NSLog(@"XShm not supported, XShmCreateImage failed."); NSLog(@"XShm not supported, XShmCreateImage failed.");
@ -126,7 +127,10 @@ static void test_xshm(Display *display, int drawing_depth)
} }
shminfo.readOnly = 0; shminfo.readOnly = 0;
if (!XShmAttach(display, &shminfo) || num_xshm_test_errors) if (!XShmAttach(display, &shminfo))
num_xshm_test_errors++;
XSync(display, False);
if (num_xshm_test_errors)
{ {
NSLog(@"XShm not supported, XShmAttach() failed."); NSLog(@"XShm not supported, XShmAttach() failed.");
XDestroyImage(ximage); XDestroyImage(ximage);