[mutter/wayland] wayland: Drop raise on click too
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] wayland: Drop raise on click too
- Date: Wed, 13 Nov 2013 14:01:33 +0000 (UTC)
commit b7b95123ed88f73ffb9e33109202d4f524be6dba
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 16 00:06:45 2013 -0400
wayland: Drop raise on click too
We'll handle this through GCD as well.
src/wayland/meta-wayland-seat.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index 84db89c..259de37 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -281,29 +281,16 @@ handle_button_event (MetaWaylandSeat *seat,
{
MetaWaylandPointer *pointer = &seat->pointer;
gboolean implicit_grab;
- uint32_t button;
- MetaWaylandSurface *surface;
notify_motion (seat, event);
implicit_grab = (event->type == CLUTTER_BUTTON_PRESS) && (pointer->button_count == 1);
if (implicit_grab)
{
- button = clutter_event_get_button (event);
- pointer->grab_button = button;
+ pointer->grab_button = clutter_event_get_button (event);
pointer->grab_time = clutter_event_get_time (event);
pointer->grab_x = pointer->x;
pointer->grab_y = pointer->y;
-
- /* FIXME: synth a XI2 event and handle in display.c */
- surface = pointer->current;
- if (button == CLUTTER_BUTTON_PRIMARY &&
- surface &&
- surface->window &&
- surface->window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND)
- {
- meta_window_raise (surface->window);
- }
}
pointer->grab->interface->button (pointer->grab, event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]