diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-07 15:09:33 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-07 15:09:33 -0500 |
commit | 5df549ce8d57f5622ab5e0b9037994a07eb7f28d (patch) | |
tree | a0f2eb1cb38627e6da7a1132dcf9568a9f800c72 /tdecore/kkeynative_x11.cpp | |
parent | a5fb7a12308e9883da7f557644d6710bf7a0656d (diff) | |
download | tdelibs-5df549ce8d57f5622ab5e0b9037994a07eb7f28d.tar.gz tdelibs-5df549ce8d57f5622ab5e0b9037994a07eb7f28d.zip |
Update calls to deprecated XKeycodeToKeysym function
Diffstat (limited to 'tdecore/kkeynative_x11.cpp')
-rw-r--r-- | tdecore/kkeynative_x11.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tdecore/kkeynative_x11.cpp b/tdecore/kkeynative_x11.cpp index 261f08e3c..64635acc3 100644 --- a/tdecore/kkeynative_x11.cpp +++ b/tdecore/kkeynative_x11.cpp @@ -40,6 +40,7 @@ #include <X11/X.h> #include <X11/Xlib.h> #include <X11/Xutil.h> +#include <X11/XKBlib.h> #include <X11/keysymdef.h> #include <ctype.h> #endif @@ -111,10 +112,10 @@ bool KKeyNative::init( const KKey& key ) // Only do this for the default Xorg layout, other keycode mappings // (e.g. evdev) don't need or want it. if( m_sym == XK_Print && !(m_mod & Mod1Mask) && - XKeycodeToKeysym( tqt_xdisplay(), 111, 0 ) == XK_Print ) + XkbKeycodeToKeysym( tqt_xdisplay(), 111, 0, 0 ) == XK_Print ) m_code = 111; // code for Print else if( m_sym == XK_Break || (m_sym == XK_Pause && (m_mod & ControlMask)) && - XKeycodeToKeysym( tqt_xdisplay(), 114, 0 ) == XK_Pause ) + XkbKeycodeToKeysym( tqt_xdisplay(), 114, 0, 0 ) == XK_Pause ) m_code = 114; else m_code = XKeysymToKeycode( tqt_xdisplay(), m_sym ); |