summaryrefslogtreecommitdiff
path: root/src/xrandr.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-21 20:04:37 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-21 20:04:37 +0100
commitf34153a2f385818c3820b37c20cde4e1054ccce1 (patch)
tree126d61c165f70734451e79ed18592866dd2475cb /src/xrandr.c
parent28d7a4967d6c550ee9d03180e08691519b9b4bc0 (diff)
downloadratpoison-f34153a2f385818c3820b37c20cde4e1054ccce1.zip
Only use xrandr if Xrandr init succeeds
Diffstat (limited to 'src/xrandr.c')
-rw-r--r--src/xrandr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xrandr.c b/src/xrandr.c
index f2ea804..f36105a 100644
--- a/src/xrandr.c
+++ b/src/xrandr.c
@@ -49,6 +49,8 @@ init_xrandr (void)
XRRSelectInput (dpy, RootWindow (dpy, DefaultScreen(dpy)),
RRCrtcChangeNotifyMask | RROutputChangeNotifyMask);
+
+ rp_have_xrandr = 1;
}
int *