aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 132f12d..843ef56 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
dependencies="glm glew sdl2 openvr x11 xcomposite xfixes mpv"
includes=$(pkg-config --cflags $dependencies)
-libs=$(pkg-config --libs $dependencies)
+libs="$(pkg-config --libs $dependencies) -lm -pthread"
gcc -c src/window_texture.c -O2 -DNDEBUG $includes
g++ -c src/mpv.cpp -O2 -DNDEBUG $includes
g++ -c src/main.cpp -O2 -DNDEBUG $includes
diff --git a/src/main.cpp b/src/main.cpp
index 88be01b..422b536 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -725,6 +725,8 @@ static void grabkeys(Display *display) {
XGrabKey(display, XKeysymToKeycode(display, keys[j]), Mod1Mask|modifiers[i], root_window, False, GrabModeAsync, GrabModeAsync);
}
}
+
+ XSync(display, False);
}