Update usage of deprecated XKeycodeToKeysym function

pull/2/head
Timothy Pearson 12 years ago
parent 8dd9123178
commit 846bcc1a23

@ -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;
}

Loading…
Cancel
Save