diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-11-22 18:21:47 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2011-01-05 19:04:37 -0500 |
commit | 859d214a04c29ec839d5552f3e13dff937260083 (patch) | |
tree | 93b4c38cecae9e3e99069d5a6be8ab1776c320e5 /src/include/ui.h | |
parent | d149b7c974a6fce2ba80c449840c748656dc74ea (diff) | |
download | metacity-859d214a04c29ec839d5552f3e13dff937260083.tar.gz |
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/include/ui.h')
-rw-r--r-- | src/include/ui.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ui.h b/src/include/ui.h index 6d98de8b..386581e7 100644 --- a/src/include/ui.h +++ b/src/include/ui.h @@ -185,6 +185,12 @@ void meta_ui_set_current_theme (const char *name, gboolean force_reload); gboolean meta_ui_have_a_theme (void); +/* Not a real key symbol but means "key above the tab key"; this is + * used as the default keybinding for cycle_group. + * 0x2xxxxxxx is a range not used by GDK or X. the remaining digits are + * randomly chosen */ +#define META_KEY_ABOVE_TAB 0x2f7259c9 + gboolean meta_ui_parse_accelerator (const char *accel, unsigned int *keysym, unsigned int *keycode, |