feat: remove defunct --no-xinitThreads option

based on https://github.com/input-leap/input-leap/pull/1503
This commit is contained in:
sithlord48
2025-06-11 23:47:06 -04:00
committed by Nick Bolton
parent bc350852e7
commit c2a658256e
7 changed files with 9 additions and 49 deletions

View File

@ -86,7 +86,7 @@ static int xi_opcode;
XWindowsScreen *XWindowsScreen::s_screen = nullptr;
XWindowsScreen::XWindowsScreen(
const char *displayName, bool isPrimary, bool disableXInitThreads, int mouseScrollDelta, IEventQueue *events,
const char *displayName, bool isPrimary, int mouseScrollDelta, IEventQueue *events,
deskflow::ClientScrollDirection scrollDirection
)
: PlatformScreen(events, scrollDirection),
@ -101,12 +101,8 @@ XWindowsScreen::XWindowsScreen(
m_mouseScrollDelta = 120;
s_screen = this;
if (!disableXInitThreads) {
// initializes Xlib support for concurrent threads.
if (XInitThreads() == 0)
throw std::runtime_error("XInitThreads() returned zero");
} else {
LOG((CLOG_DEBUG "skipping XInitThreads()"));
if (XInitThreads() == 0) {
throw std::runtime_error("XInitThreads() returned zero");
}
// set the X I/O error handler so we catch the display disconnecting