summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xrandr-notify.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xrandr-notify.c b/xrandr-notify.c
index fc8e60d..dc0e65f 100644
--- a/xrandr-notify.c
+++ b/xrandr-notify.c
@@ -11,7 +11,6 @@ int main(int argc, char **argv)
Window root;
XEvent event;
int dummy, screen, randr_event_base;
- bool has_randr;
dpy = XOpenDisplay(NULL);
if (dpy == NULL) {
@@ -20,10 +19,7 @@ int main(int argc, char **argv)
}
/* Is the randr extension available? */
- has_randr = false;
- has_randr = XRRQueryExtension(dpy, &randr_event_base, &dummy);
-
- if (!has_randr) {
+ if (!XRRQueryExtension(dpy, &randr_event_base, &dummy)) {
fputs("ERROR: RandR extension unavailable on current screen!\n", stderr);
return EXIT_FAILURE;
}