projects
/
dana
/
dcompmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check if we connected to a display correctly
[dana/dcompmgr.git]
/
display.c
diff --git
a/display.c
b/display.c
index
5891fd4
..
be05baf
100644
(file)
--- a/
display.c
+++ b/
display.c
@@
-169,7
+169,7
@@
display_open(const char *name)
xcb_connection_t *conn;
conn = xcb_connect(name, NULL);
- if (conn) {
+ if (conn
&& !xcb_connection_has_error(conn)
) {
dpy = malloc(sizeof(d_display_t));
dpy->conn = conn;
dpy->ref = 1;