summaryrefslogtreecommitdiff
path: root/xlsclients.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlsclients.c')
-rw-r--r--xlsclients.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlsclients.c b/xlsclients.c
index 2fd0c2b..3a34865 100644
--- a/xlsclients.c
+++ b/xlsclients.c
@@ -189,7 +189,7 @@ main(int argc, char *argv[])
}
dpy = xcb_connect(displayname, &screen_number);
- if (!dpy) {
+ if (xcb_connection_has_error(dpy)) {
char *name = displayname;
if (!name)
name = getenv("DISPLAY");