diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-23 02:03:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-23 02:04:05 +0200 |
commit | e719b5c0122b5c849bd6c4bd0b2f443e6ed63ad4 (patch) | |
tree | b801fa40bae2df3be2e91feefeac2c50bd8a13ac | |
parent | 06c27c56edd8a65971d2354544ac25792ee7261d (diff) |
Link to math and pthread
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); } |