[mutter/wip/wayland-display: 10/62] wayland: support left click to raise wayland surfaces
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-display: 10/62] wayland: support left click to raise wayland surfaces
- Date: Thu, 8 Aug 2013 08:28:57 +0000 (UTC)
commit b6ab267cdc0b220ad53059672af9afb957bea723
Author: Robert Bragg <robert linux intel com>
Date: Sat Jun 15 23:05:31 2013 +0100
wayland: support left click to raise wayland surfaces
This adds support for raising wayland surfaces when clicked with the
left mouse button.
src/wayland/meta-wayland-seat.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index 0b114db..5f9c27a 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -347,10 +347,20 @@ handle_button_event (MetaWaylandSeat *seat,
{
if (pointer->button_count == 0)
{
+ MetaWaylandSurface *surface = pointer->current;
+
pointer->grab_button = button;
pointer->grab_time = event->time;
pointer->grab_x = pointer->x;
pointer->grab_y = pointer->y;
+
+ if (button == BTN_LEFT &&
+ surface &&
+ surface->window &&
+ surface->window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND)
+ {
+ meta_window_raise (surface->window);
+ }
}
pointer->button_count++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]