[mutter/wip/wayland-clutter-events-2: 18/23] wayland: Drop focus on click



commit 997188e914232d06eb774201232f06020c627f6e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Oct 4 02:20:43 2013 -0400

    wayland: Drop focus on click
    
    The native raise-on-click works with Wayland clients through the standard
    Grand Central Station event handling, with MetaWindow.

 src/wayland/meta-wayland.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 9a9fb05..c9a2c2f 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -565,32 +565,12 @@ event_filter_cb (const ClutterEvent *event,
   MetaWaylandCompositor *compositor = user_data;
   MetaWaylandSeat *seat = compositor->seat;
   MetaWaylandPointer *pointer = &seat->pointer;
-  MetaWaylandSurface *surface;
 
   reset_idletimes (event);
 
   if (meta_wayland_seat_handle_event (compositor->seat, event))
     return TRUE;
 
-  /* HACK: for now, the surfaces from Wayland clients aren't
-     integrated into Mutter's event handling and Mutter won't give them
-     focus on mouse clicks. As a hack to work around this we can just
-     give them input focus on mouse clicks so we can at least test the
-     keyboard support */
-  if (event->type == CLUTTER_BUTTON_PRESS)
-    {
-      surface = pointer->current;
-
-      if (surface && surface->window &&
-         surface->window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND)
-        {
-         MetaDisplay *display = meta_get_display ();
-         guint32 timestamp = meta_display_get_current_time_roundtrip (display);
-
-         meta_window_focus (surface->window, timestamp);
-        }
-    }
-
   if (seat->cursor_tracker)
     {
       meta_cursor_tracker_update_position (seat->cursor_tracker,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]