wayland: Fetch seat input focus as focus for new pad devices

Use the MetaWaylandSeat focus, and avoid peeking at MetaWaylandKeyboard
internals.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3627>
This commit is contained in:
Carlos Garnacho 2024-02-27 12:55:25 +01:00 committed by Marge Bot
parent 017eff6663
commit fb7cd18ebf

View File

@ -192,7 +192,9 @@ static void
meta_wayland_tablet_seat_device_added (MetaWaylandTabletSeat *tablet_seat, meta_wayland_tablet_seat_device_added (MetaWaylandTabletSeat *tablet_seat,
ClutterInputDevice *device) ClutterInputDevice *device)
{ {
MetaWaylandSurface *pad_focus = tablet_seat->seat->keyboard->focus_surface; MetaWaylandSurface *pad_focus;
pad_focus = meta_wayland_seat_get_input_focus (tablet_seat->seat);
if (is_tablet_device (device)) if (is_tablet_device (device))
{ {