-#ifdef HAVE_XSHM_EXTENSION
- if (st->useShm)
- XShmPutImage (st->dpy, st->window, st->backgroundGC, st->workImage, 0, 0, 0, 0,
- st->windowWidth, st->windowHeight, False);
- else
-#endif /* HAVE_XSHM_EXTENSION */
- XPutImage (st->dpy, st->window, st->backgroundGC, st->workImage,
- 0, 0, 0, 0, st->windowWidth, st->windowHeight);
+ put_xshm_image (st->dpy, st->window, st->backgroundGC, st->workImage, 0, 0, 0, 0,
+ st->windowWidth, st->windowHeight, &st->shmInfo);