[mutter/wip/wayland-clutter-events-2: 19/23] wayland: Drop raise on click too
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-clutter-events-2: 19/23] wayland: Drop raise on click too
- Date: Mon, 4 Nov 2013 16:20:10 +0000 (UTC)
commit 715fa91599650e93efb9fe386ecd4d0b38ba86e2
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 | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index f49ce88..d8b26b3 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -280,31 +280,9 @@ handle_button_event (MetaWaylandSeat *seat,
const ClutterEvent *event)
{
MetaWaylandPointer *pointer = &seat->pointer;
- gboolean state = event->type == CLUTTER_BUTTON_PRESS;
- uint32_t button;
- MetaWaylandSurface *surface;
notify_motion (seat, event);
- if (state && pointer->button_count == 1)
- {
- button = clutter_event_get_button (event);
- pointer->grab_button = button;
- 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);
if (pointer->button_count == 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]