Grab mouse on X11

This commit is contained in:
Iwan Timmer
2017-05-25 20:36:06 +02:00
parent 8d4670339f
commit a30f0eec05
2 changed files with 44 additions and 11 deletions

View File

@@ -51,6 +51,7 @@ void x11_setup(int videoFormat, int width, int height, int redrawRate, void* con
exit(1);
}
XInitThreads();
display = XOpenDisplay(NULL);
if (!display) {
fprintf(stderr, "Error: failed to open X display.\n");