diff options
Diffstat (limited to 'xcbdpyinfo.c')
-rw-r--r-- | xcbdpyinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xcbdpyinfo.c b/xcbdpyinfo.c index ae4b574..beaa144 100644 --- a/xcbdpyinfo.c +++ b/xcbdpyinfo.c @@ -19,7 +19,7 @@ int main(int argc, char **argv) int screen; c = xcb_connect(0, &screen); - if(!c) + if(xcb_connection_has_error(c)) { fputs("Connect failed.\n", stderr); exit(1); |