shadow: fix X11 non-XShm support