[mutter/wip/wayland-clutter-events-2: 30/34] wayland: Drop raise on click too



commit 886103c1fb58345f4b3e691d8a249bccce6e7c3d
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]