[PATCH 3/3] alt-tab: switch binding to mod+tab

pochu27 at gmail.com pochu27 at gmail.com
Wed Jan 8 05:33:33 PST 2014


From: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>

So it uses the same modifier than the rest of the bindings,
for consistency's sake.
---
 desktop-shell/shell.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index cc7d8dc..13a42e1 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5691,9 +5691,6 @@ shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell)
 	weston_compositor_add_key_binding(ec, KEY_BACKSPACE,
 				          MODIFIER_CTRL | MODIFIER_ALT,
 				          terminate_binding, ec);
-	weston_compositor_add_key_binding(ec, KEY_TAB,
-					  MODIFIER_ALT,
-					  alt_tab_binding, shell);
 	weston_compositor_add_button_binding(ec, BTN_LEFT, 0,
 					     click_to_activate_binding,
 					     shell);
@@ -5729,6 +5726,8 @@ shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell)
 
 	weston_compositor_add_key_binding(ec, KEY_ESC, mod, switcher_binding,
 					  shell);
+	weston_compositor_add_key_binding(ec, KEY_TAB, mod, alt_tab_binding,
+					  shell);
 	weston_compositor_add_key_binding(ec, KEY_F9, mod, backlight_binding,
 					  ec);
 	weston_compositor_add_key_binding(ec, KEY_BRIGHTNESSDOWN, 0,
-- 
1.8.5.2



More information about the wayland-devel mailing list