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:
parent
4479ca0b7b
commit
c12ccd4e15
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user