/* See LICENSE file for copyright and license details. */
-#include <err.h>
+#include <stdio.h>
#include <X11/Xlib.h>
#include "../util.h"
XKeyboardState state;
if (dpy == NULL) {
- warnx("XOpenDisplay failed");
+ fprintf(stderr, "Cannot open display\n");
return NULL;
}
XGetKeyboardControl(dpy, &state);