linux-capture: Ensure locks are initialized

In case no-one else initializes X11 locks do this as part of loading the
module.

Fixes #3479
This commit is contained in:
Kurt Kartaltepe 2021-01-27 23:04:41 -08:00 committed by Jim
parent 4479ca0b7b
commit c12ccd4e15

View File

@ -24,6 +24,8 @@ bool XCompcapMain::init()
return false;
}
XInitThreads();
int eventBase, errorBase;
if (!XCompositeQueryExtension(xdisp, &eventBase, &errorBase)) {
blog(LOG_ERROR, "Xcomposite extension not supported");