MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / init

Function init

plugins/base/utils/linux/linux.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static void init()
34{
35 libXtstHandle = new QLibrary("libXtst", nullptr);
36 pressFunc = (keyPressFunc)libXtstHandle->resolve("XTestFakeKeyEvent");
37 int _;
38 auto display = disp();
39 canSimulateKeyPresses = pressFunc && display &&
40 XQueryExtension(disp(), "XTEST", &_, &_, &_);
41}
42
43static void cleanup()
44{

Callers

nothing calls this directly

Calls 1

dispFunction · 0.70

Tested by

no test coverage detected