looking-glass/client/xlib-shim.c
Geoffrey McRae d591e2fd36 [client] added xlib-shim to disable calls to XSync
The compiled xlib-shim.so can be used to intercept and prevent SDL
from calling XSync, which causes latency issues on some video
hardware.

To use specify the full path to the file in the LD_PRELOAD
environment variable, like so:

LD_PRELOAD=/full/path/xlib-shim.so ./looking-glass
2018-01-25 09:55:21 +11:00

15 lines
No EOL
242 B
C

#include <X11/Xlib.h>
#include <stdbool.h>
#include "debug.h"
int XSync(Display * display, Bool discard)
{
static bool doneInfo = false;
if (!doneInfo)
{
DEBUG_INFO("XSync Override Enabled");
doneInfo = true;
}
return 0;
}