aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-08 12:17:41 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-08 12:17:41 +0200
commitd3a7e179981798880f28255832b319801aca11b6 (patch)
tree096226e88a43a5c24866479f036a72b4bf19b0ee /src
parent53f04c9833570cf3c15c3d24cf5bcbbb09f94066 (diff)
Update readme
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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)