linux-capture: Use xcb to check for extensions
Use the previously added helper function to check for needed extensions.
This commit is contained in:
parent
aa016706a2
commit
008f4467f0
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user