shadow/X11: fix color depth check