[PATCH 2/3] switcher: change keybinding to mod+esc
pochu27 at gmail.com
pochu27 at gmail.com
Wed Jan 8 05:33:32 PST 2014
From: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
To avoid conflicts with the new alt+tab.
---
desktop-shell/shell.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 3d0836d..cc7d8dc 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5278,7 +5278,7 @@ switcher_key(struct weston_keyboard_grab *grab,
struct switcher *switcher = container_of(grab, struct switcher, grab);
enum wl_keyboard_key_state state = state_w;
- if (key == KEY_TAB && state == WL_KEYBOARD_KEY_STATE_PRESSED)
+ if (key == KEY_ESC && state == WL_KEYBOARD_KEY_STATE_PRESSED)
switcher_next(switcher);
}
@@ -5727,7 +5727,7 @@ shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell)
weston_compositor_add_button_binding(ec, BTN_RIGHT, mod,
rotate_binding, NULL);
- weston_compositor_add_key_binding(ec, KEY_TAB, mod, switcher_binding,
+ weston_compositor_add_key_binding(ec, KEY_ESC, mod, switcher_binding,
shell);
weston_compositor_add_key_binding(ec, KEY_F9, mod, backlight_binding,
ec);
--
1.8.5.2
More information about the wayland-devel
mailing list