summaryrefslogtreecommitdiff
path: root/app/xrandr/xrandr.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-10-31 20:10:48 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-10-31 20:10:48 +0000
commitb4b222f5690d09162974693850b424987ea59453 (patch)
tree94fbe01698ade22a31dfc175ec9fb6e5eebaf8d7 /app/xrandr/xrandr.c
parent0b4a6cabc28ea2396f487d1e647a2f5c7f300806 (diff)
Update to xrandr 1.3.4
Diffstat (limited to 'app/xrandr/xrandr.c')
-rw-r--r--app/xrandr/xrandr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/xrandr/xrandr.c b/app/xrandr/xrandr.c
index 585881304..0adf375e5 100644
--- a/app/xrandr/xrandr.c
+++ b/app/xrandr/xrandr.c
@@ -2679,7 +2679,8 @@ main (int argc, char **argv)
root = RootWindow (dpy, screen);
- if (!XRRQueryVersion (dpy, &major, &minor))
+ if (!XRRQueryExtension (dpy, &event_base, &error_base) ||
+ !XRRQueryVersion (dpy, &major, &minor))
{
fprintf (stderr, "RandR extension missing\n");
exit (1);
@@ -3372,8 +3373,6 @@ main (int argc, char **argv)
root,
(SizeID) size, (Rotation) (rotation | reflection), rate, CurrentTime);
- XRRQueryExtension(dpy, &event_base, &error_base);
-
if (setit && !dryrun && status == RRSetConfigFailed) {
printf ("Failed to change the screen configuration!\n");
ret = 1;