summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkprivate-x11.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-04 20:19:04 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-04 20:19:04 +0000
commitb543bbff41dd23a9a4086e8d75c5857d162f384f (patch)
tree5e6130db8fc0af341588a4be10247e6878d596fe /gdk/x11/gdkprivate-x11.h
parent0c54d4be128507c8dcc80415dd8a1f61238831a9 (diff)
downloadgtk+-b543bbff41dd23a9a4086e8d75c5857d162f384f.tar.gz
Fixes for non XKB operation. (#73103)
Mon Mar 4 12:43:48 2002 Owen Taylor <otaylor@redhat.com> Fixes for non XKB operation. (#73103) * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Fix problem where GDK_Tab was converted to GDK_ISO_Left_Tab always, not just if Shift was pressed. * gdk/x11/gdkkeys-x11.c gdk/x11/gdkprivate-x11.c gdk/x11/gdkevents-x11.c: Move determination of group to _gdk_x11_get_group_for_state(), fix to handle non-XKB. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Only add in SHIFT_MASK | LOCK_MASK to consumed_modifiers if the shifted and unshifted keysyms are different. Only add in group_switch_mask if the group-switched and non-group-switched keysyms are diferent. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): When calling XKeycodeToKeysym, use group * keysyms_per_keycode / 2 not group * keysyms_per_keycode. (Tor Lillquist) * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Remove the hack to fudge the return value for GDK_Tab + Shift since that didn't work -- it didn't affect the reverse mapping. Instead fudge the non-XKB keymap instead.
Diffstat (limited to 'gdk/x11/gdkprivate-x11.h')
-rw-r--r--gdk/x11/gdkprivate-x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index 2035e2066f..b7bb8a6b6b 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -160,6 +160,7 @@ void _gdk_moveresize_handle_event (XEvent *event);
void _gdk_moveresize_configure_done (void);
void _gdk_keymap_state_changed (void);
+gint _gdk_x11_get_group_for_state (GdkModifierType state);
GC _gdk_x11_gc_flush (GdkGC *gc);