Commit 97dabaa3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: print server version infos in the debug

parent 971ddef7
......@@ -71,6 +71,17 @@ xcb_connection_t *Connect (vlc_object_t *obj)
xcb_disconnect (conn);
return NULL;
}
const xcb_setup_t *setup = xcb_get_setup (conn);
msg_Dbg (obj, "connected to X%"PRIu16".%"PRIu16" server",
setup->protocol_major_version, setup->protocol_minor_version);
char *vendor = strndup (xcb_setup_vendor (setup), setup->vendor_len);
if (vendor)
{
msg_Dbg (obj, " vendor : %s", vendor);
free (vendor);
}
msg_Dbg (obj, " version: %"PRIu32, setup->release_number);
return conn;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment