summaryrefslogtreecommitdiff
path: root/src/core/display-private.h
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-11-22 18:21:47 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2011-01-05 19:04:37 -0500
commit859d214a04c29ec839d5552f3e13dff937260083 (patch)
tree93b4c38cecae9e3e99069d5a6be8ab1776c320e5 /src/core/display-private.h
parentd149b7c974a6fce2ba80c449840c748656dc74ea (diff)
downloadmetacity-859d214a04c29ec839d5552f3e13dff937260083.tar.gz
metacity-859d214a04c29ec839d5552f3e13dff937260083.tar.bz2
Add an "Above_Tab" pseudo-keysym
We want switching between the windows of an application to be an easily accessible operation. The convenient and memorable keybinding is the key above the tab key - but the keysym for that key isn't consistent across different keyboard layouts. Add code that figures out the key from the XKB geometry and a magic keysym name "Above_Tab" that refers to this key and switch the default binding for cycle_group to <Alt>Above_Tab. https://bugzilla.gnome.org/show_bug.cgi?id=635569
Diffstat (limited to 'src/core/display-private.h')
-rw-r--r--src/core/display-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/display-private.h b/src/core/display-private.h
index 19287f3..cc304c3 100644
--- a/src/core/display-private.h
+++ b/src/core/display-private.h
@@ -207,6 +207,7 @@ struct _MetaDisplay
KeySym *keymap;
int keysyms_per_keycode;
XModifierKeymap *modmap;
+ unsigned int above_tab_keycode;
unsigned int ignored_modifier_mask;
unsigned int num_lock_mask;
unsigned int scroll_lock_mask;
@@ -497,4 +498,7 @@ void meta_display_queue_autoraise_callback (MetaDisplay *display,
MetaWindow *window);
void meta_display_remove_autoraise_callback (MetaDisplay *display);
+/* In above-tab-keycode.c */
+guint meta_display_get_above_tab_keycode (MetaDisplay *display);
+
#endif