summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@ubuntu.com>2013-04-11 18:34:49 +0400
committerJeremy Bicha <jbicha@ubuntu.com>2013-05-30 13:09:00 -0400
commit67165f516f87adc1b20f3339294299565f6db56d (patch)
tree5b17ff833f2f68b5485466d80a40ac19de5fc589
parent90dc810b9f501136c6f1cf94bc4f4c1f626412b9 (diff)
downloadmetacity-67165f516f87adc1b20f3339294299565f6db56d.tar.gz
Add support for switch-applications keybindings
In gsettings-desktop-schemas 3.8, there is not shortcut for switch-windows, and Alt+Tab points to switch-applications by default. As we do not support switching applications, but want Alt+Tab to work, just bind switch-applications to the same action as switch-windows is currently bound to (and the same for -backward). https://bugzilla.gnome.org/show_bug.cgi?id=697801
-rw-r--r--src/50-metacity-navigation.xml.in3
-rw-r--r--src/include/all-keybindings.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/50-metacity-navigation.xml.in b/src/50-metacity-navigation.xml.in
index fc0b4575..597cc47b 100644
--- a/src/50-metacity-navigation.xml.in
+++ b/src/50-metacity-navigation.xml.in
@@ -30,6 +30,9 @@
_description="Move window one workspace down" />
<KeyListEntry name="switch-windows"
+ _description="Switch windows"/>
+
+ <KeyListEntry name="switch-applications"
_description="Switch applications"/>
<KeyListEntry name="switch-group"
diff --git a/src/include/all-keybindings.h b/src/include/all-keybindings.h
index f1aa02d1..a9307268 100644
--- a/src/include/all-keybindings.h
+++ b/src/include/all-keybindings.h
@@ -129,6 +129,12 @@ keybind (switch-group-backward, handle_switch, META_TAB_LIST_GROUP,
keybind (switch-windows, handle_switch, META_TAB_LIST_NORMAL, BINDING_REVERSES)
keybind (switch-windows-backward, handle_switch, META_TAB_LIST_NORMAL,
REVERSES_AND_REVERSED)
+/* We do not support switching applications, so we map these to switching
+ * windows */
+keybind (switch-applications, handle_switch, META_TAB_LIST_NORMAL,
+ BINDING_REVERSES)
+keybind (switch-applications-backward, handle_switch, META_TAB_LIST_NORMAL,
+ REVERSES_AND_REVERSED)
keybind (switch-panels, handle_switch, META_TAB_LIST_DOCKS, BINDING_REVERSES)
keybind (switch-panels-backward, handle_switch, META_TAB_LIST_DOCKS,
REVERSES_AND_REVERSED)