fix(xcomposite): Disable extension query #406

This commit is contained in:
Michael Carlberg 2017-02-04 19:14:10 +01:00
parent 8146f65286
commit 9ced7dbf73

View File

@ -8,12 +8,14 @@ namespace composite_util {
/** /**
* Query for the XCOMPOSITE extension * Query for the XCOMPOSITE extension
*/ */
void query_extension(connection& conn) { void query_extension(connection&) {
#if 0
conn.composite().query_version(XCB_COMPOSITE_MAJOR_VERSION, XCB_COMPOSITE_MINOR_VERSION); conn.composite().query_version(XCB_COMPOSITE_MAJOR_VERSION, XCB_COMPOSITE_MINOR_VERSION);
if (!conn.extension<xpp::composite::extension>()->present) { if (!conn.extension<xpp::composite::extension>()->present) {
throw application_error("Missing X extension: Composite"); throw application_error("Missing X extension: Composite");
} }
#endif
} }
} }