screensaver: trap X11 errors on gamma change
Some X servers (e.g., xorgrdp
) appear to always generate BadValue
on
XF86VidModeSetGamma()
, even if the corresponding extension is supported
and reported to be of a sufficiently high version. This patch traps these BadValue
errors, preventing
Xlib from killing the program upon their receipt.