diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2015-06-25 16:03:30 -0500 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-07-16 19:35:19 -0700 |
commit | 2217f3f7383d814ef73d343f1337e43b3a71a90a (patch) | |
tree | b9ba0a4b33902403745d257f7409272b16cc31b6 | |
parent | 6bc33d63cfc0799b85a8e62c3657b5a13de5a78a (diff) |
shell: Switch middle and right mouse bindings
Currently rotate is on the right mouse button and resize is on the middle.
As fantastic as rotating windows is, it's probably nicer to have resize on
the right button, especially for anyone with only 2 buttons.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | desktop-shell/shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 5e34ddd5..f673f041 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -6444,14 +6444,14 @@ shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell) weston_compositor_add_button_binding(ec, BTN_LEFT, mod, move_binding, shell); weston_compositor_add_touch_binding(ec, mod, touch_move_binding, shell); - weston_compositor_add_button_binding(ec, BTN_MIDDLE, mod, + weston_compositor_add_button_binding(ec, BTN_RIGHT, mod, resize_binding, shell); weston_compositor_add_button_binding(ec, BTN_LEFT, mod | MODIFIER_SHIFT, resize_binding, shell); if (ec->capabilities & WESTON_CAP_ROTATION_ANY) - weston_compositor_add_button_binding(ec, BTN_RIGHT, mod, + weston_compositor_add_button_binding(ec, BTN_MIDDLE, mod, rotate_binding, NULL); weston_compositor_add_key_binding(ec, KEY_TAB, mod, switcher_binding, |