[mutter/wip/carlosg/im-update-preedit-with-mode: 3/3] wayland: Forward button press / touch down to Wayland text-input impls




commit ece52baec8cbe152e34511a9b580a4419452e3da
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jul 27 16:50:50 2021 +0200

    wayland: Forward button press / touch down to Wayland text-input impls
    
    These are ClutterInputFocus subclasses, so this will trigger reset of
    the input method.

 src/wayland/meta-wayland-seat.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index abc0b4ddae..c6390dde78 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -387,6 +387,14 @@ meta_wayland_seat_handle_event (MetaWaylandSeat *seat,
       !event_from_supported_hardware_device (seat, event))
     return FALSE;
 
+  if (event->type == CLUTTER_BUTTON_PRESS ||
+      event->type == CLUTTER_TOUCH_BEGIN)
+    {
+      meta_wayland_text_input_handle_event (seat->text_input, event);
+      meta_wayland_gtk_text_input_handle_event (seat->gtk_text_input,
+                                                event);
+    }
+
   switch (event->type)
     {
     case CLUTTER_MOTION:


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