diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-08 12:17:41 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-08 12:17:41 +0200 |
commit | d3a7e179981798880f28255832b319801aca11b6 (patch) | |
tree | 096226e88a43a5c24866479f036a72b4bf19b0ee | |
parent | 53f04c9833570cf3c15c3d24cf5bcbbb09f94066 (diff) |
Update readme
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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) |