|
|
|
@ -4059,7 +4059,7 @@ namespace cimg_library {
|
|
|
|
|
XSendEvent(cimg::X11attr().display, window, False, 0, &event);
|
|
|
|
|
pthread_mutex_unlock(cimg::X11attr().mutex);
|
|
|
|
|
} else {
|
|
|
|
|
#if cimg_use_xshm
|
|
|
|
|
#ifdef cimg_use_xshm
|
|
|
|
|
if (shminfo)
|
|
|
|
|
XShmPutImage(cimg::X11attr().display,window,*cimg::X11attr().gc,image,0,0,0,0,width,height,False);
|
|
|
|
|
else
|
|
|
|
@ -4157,7 +4157,7 @@ namespace cimg_library {
|
|
|
|
|
if (fullscreen) XUngrabKeyboard(cimg::X11attr().display,CurrentTime);
|
|
|
|
|
XDestroyWindow(cimg::X11attr().display,window);
|
|
|
|
|
if (shminfo) {
|
|
|
|
|
#if cimg_use_xshm
|
|
|
|
|
#ifdef cimg_use_xshm
|
|
|
|
|
XShmDetach(cimg::X11attr().display, shminfo);
|
|
|
|
|
XDestroyImage(image);
|
|
|
|
|
shmdt(shminfo->shmaddr);
|
|
|
|
|