From d3a7e179981798880f28255832b319801aca11b6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 8 Sep 2021 12:17:41 +0200 Subject: Update readme --- README.md | 3 +++ src/main.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c82fc70..429f8d4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ A virtual reality video player for Linux running X11, based on Valve's openvr `h Currently only works with stereo video and equirectangular cube maps (youtube 360 videos) when used for vr videos, but if the vr video player is launched with the `--plane` option then you can view the video as a regular video in vr without depth (like a cinema). +## Note +Might now work when using a compositor such as picom when using the glx backend. + # Building vr video player can be built by running `./build.sh` or by using [sibs](https://git.dec05eba.com/sibs) or if you are running Arch Linux, then you can find it on aur under the name vr-video-player-git (`yay -S vr-video-player-git`). Dependencies needed when building using `build.sh`: `glm, glew, sdl2, openvr, libx11, libxcomposite, libxfixes`. diff --git a/src/main.cpp b/src/main.cpp index 5ed6335..70bd513 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1034,7 +1034,7 @@ bool CMainApplication::HandleInput() } if (XCheckTypedEvent(x_display, KeyPress, &xev) && (xev.xkey.state & Mod1Mask)) { - int keysym = XKeycodeToKeysym(x_display, xev.xkey.keycode, 0); + KeySym keysym = XLookupKeysym(&xev.xkey, 0); if(keysym == XK_F1) m_bResetRotation = true; else if(keysym == XK_q) -- cgit v1.2.3