linux-capture: Use xcb to check for extensions

Use the previously added helper function to check for needed extensions.
This commit is contained in:
fryshorts 2014-12-21 22:43:11 +01:00
parent aa016706a2
commit 008f4467f0

View File

@ -205,10 +205,8 @@ static void xshm_capture_start(struct xshm_data *data)
XSetEventQueueOwner(data->dpy, XCBOwnsEventQueue);
data->xcb = XGetXCBConnection(data->dpy);
if (!XShmQueryExtension(data->dpy)) {
blog(LOG_ERROR, "XShm extension not found !");
if (!xshm_check_extensions(data->xcb))
goto fail;
}
data->use_xinerama = xinerama_is_active(data->dpy) ? true : false;