[PATCH weston] shell: activate windows upon a right click
Emilio Pozuelo Monfort
pochu27 at gmail.com
Tue Feb 11 01:52:10 PST 2014
From: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
This fixes the bug that commit da704d was trying to fix, where a
popup would appear on top of its parent but behind other windows.
https://bugs.freedesktop.org/show_bug.cgi?id=74831
Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
---
desktop-shell/shell.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index a73e8e0..be44905 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5701,6 +5701,9 @@ shell_add_bindings(struct weston_compositor *ec, struct desktop_shell *shell)
weston_compositor_add_button_binding(ec, BTN_LEFT, 0,
click_to_activate_binding,
shell);
+ weston_compositor_add_button_binding(ec, BTN_RIGHT, 0,
+ click_to_activate_binding,
+ shell);
weston_compositor_add_touch_binding(ec, 0,
touch_to_activate_binding,
shell);
--
1.9.rc1
More information about the wayland-devel
mailing list