From c12ccd4e1521c259c04f35a7ab7f5d329b20d55c Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Wed, 27 Jan 2021 23:04:41 -0800 Subject: [PATCH] linux-capture: Ensure locks are initialized In case no-one else initializes X11 locks do this as part of loading the module. Fixes #3479 --- plugins/linux-capture/xcompcap-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/linux-capture/xcompcap-main.cpp b/plugins/linux-capture/xcompcap-main.cpp index ac0966248..31f459aa2 100644 --- a/plugins/linux-capture/xcompcap-main.cpp +++ b/plugins/linux-capture/xcompcap-main.cpp @@ -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");