diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/XrrConfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrConfig.c b/src/XrrConfig.c index 34ff3ef..793d8b6 100644 --- a/src/XrrConfig.c +++ b/src/XrrConfig.c @@ -105,7 +105,7 @@ static XRRScreenConfiguration *_XRRValidateCache (Display *dpy, XRRScreenConfiguration **configs; XRandRInfo *xrri; - if (XextHasExtension(info)) { + if ((screen >= 0) && (screen < ScreenCount(dpy)) && XextHasExtension(info)) { xrri = (XRandRInfo *) info->data; configs = xrri->config; |