aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)