summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-08-07 14:21:49 -0500
committerTimothy Pearson <[email protected]>2012-08-07 14:21:49 -0500
commit846bcc1a238225418cac981aa790b0e6d6cdf495 (patch)
tree62e46c97aab06d3348a32d2f51d7909e25a4a43e /src/kernel
parent8dd91231789c19fd08b0410a7fa3a36a3cf4ea08 (diff)
downloadqt3-846bcc1a238225418cac981aa790b0e6d6cdf495.tar.gz
qt3-846bcc1a238225418cac981aa790b0e6d6cdf495.zip
Update usage of deprecated XKeycodeToKeysym function
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/qapplication_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index cd1573b..ef6571a 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -2147,7 +2147,7 @@ void qt_init_internal( int *argcptr, char **argv,
for (i = 0; i < map->max_keypermod; i++) {
if (map->modifiermap[mapIndex]) {
KeySym sym =
- XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
+ XkbKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0, 0);
if ( qt_alt_mask == 0 &&
( sym == XK_Alt_L || sym == XK_Alt_R ) ) {
qt_alt_mask = 1 << maskIndex;
@@ -2177,7 +2177,7 @@ void qt_init_internal( int *argcptr, char **argv,
for ( i = 0; i < map->max_keypermod; i++ ) {
if ( map->modifiermap[ mapIndex ] ) {
KeySym sym =
- XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
+ XkbKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0, 0 );
if ( sym == XK_Mode_switch ) {
qt_mode_switch_remove_mask |= 1 << maskIndex;
}