[mutter] wayland: add keybindings for VT8-VT12
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: add keybindings for VT8-VT12
- Date: Thu, 19 Feb 2015 21:45:27 +0000 (UTC)
commit 96b202c80dc4a701e707d583f76fe67619f6ac9e
Author: Ray Strode <rstrode redhat com>
Date: Thu Feb 19 16:07:49 2015 -0500
wayland: add keybindings for VT8-VT12
We currently only support switching to 1-7.
This commit brings us parity with X, and let's
us switch to all 12.
https://bugzilla.gnome.org/show_bug.cgi?id=744800
data/org.gnome.mutter.wayland.gschema.xml.in | 20 ++++++++++++++
src/core/keybindings.c | 35 ++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/data/org.gnome.mutter.wayland.gschema.xml.in b/data/org.gnome.mutter.wayland.gschema.xml.in
index 4bb5c1d..d7c9ed4 100644
--- a/data/org.gnome.mutter.wayland.gschema.xml.in
+++ b/data/org.gnome.mutter.wayland.gschema.xml.in
@@ -29,5 +29,25 @@
<default><![CDATA[['<Primary><Alt>F7']]]></default>
<_summary>Switch to VT 7</_summary>
</key>
+ <key name="switch-to-session-8" type="as">
+ <default><![CDATA[['<Primary><Alt>F8']]]></default>
+ <_summary>Switch to VT 8</_summary>
+ </key>
+ <key name="switch-to-session-9" type="as">
+ <default><![CDATA[['<Primary><Alt>F9']]]></default>
+ <_summary>Switch to VT 9</_summary>
+ </key>
+ <key name="switch-to-session-10" type="as">
+ <default><![CDATA[['<Primary><Alt>F10']]]></default>
+ <_summary>Switch to VT 10</_summary>
+ </key>
+ <key name="switch-to-session-11" type="as">
+ <default><![CDATA[['<Primary><Alt>F11']]]></default>
+ <_summary>Switch to VT 11</_summary>
+ </key>
+ <key name="switch-to-session-12" type="as">
+ <default><![CDATA[['<Primary><Alt>F12']]]></default>
+ <_summary>Switch to VT 12</_summary>
+ </key>
</schema>
</schemalist>
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 6683fc7..981a012 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3636,6 +3636,41 @@ init_builtin_key_bindings (MetaDisplay *display)
META_KEY_BINDING_NONE,
META_KEYBINDING_ACTION_NONE,
handle_switch_vt, 7);
+
+ add_builtin_keybinding (display,
+ "switch-to-session-8",
+ mutter_wayland_keybindings,
+ META_KEY_BINDING_NONE,
+ META_KEYBINDING_ACTION_NONE,
+ handle_switch_vt, 8);
+
+ add_builtin_keybinding (display,
+ "switch-to-session-9",
+ mutter_wayland_keybindings,
+ META_KEY_BINDING_NONE,
+ META_KEYBINDING_ACTION_NONE,
+ handle_switch_vt, 9);
+
+ add_builtin_keybinding (display,
+ "switch-to-session-10",
+ mutter_wayland_keybindings,
+ META_KEY_BINDING_NONE,
+ META_KEYBINDING_ACTION_NONE,
+ handle_switch_vt, 10);
+
+ add_builtin_keybinding (display,
+ "switch-to-session-11",
+ mutter_wayland_keybindings,
+ META_KEY_BINDING_NONE,
+ META_KEYBINDING_ACTION_NONE,
+ handle_switch_vt, 11);
+
+ add_builtin_keybinding (display,
+ "switch-to-session-12",
+ mutter_wayland_keybindings,
+ META_KEY_BINDING_NONE,
+ META_KEYBINDING_ACTION_NONE,
+ handle_switch_vt, 12);
}
#endif /* HAVE_NATIVE_BACKEND */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]