projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cccfca
)
shell: Add mod+shift left-click as a resize binding
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 20 Jan 2014 18:35:26 +0000
(10:35 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 20 Jan 2014 18:35:26 +0000
(10:35 -0800)
This lets us use compositor-initiated resize on laptops with touchpads and
no middle buttons.
desktop-shell/shell.c
patch
|
blob
|
history
diff --git
a/desktop-shell/shell.c
b/desktop-shell/shell.c
index
09614b6
..
2b9241c
100644
(file)
--- a/
desktop-shell/shell.c
+++ b/
desktop-shell/shell.c
@@
-5548,6
+5548,9
@@
shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell)
weston_compositor_add_touch_binding(ec, mod, touch_move_binding, shell);
weston_compositor_add_button_binding(ec, BTN_MIDDLE, 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,