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:
parent
017eff6663
commit
fb7cd18ebf
1 changed files with 3 additions and 1 deletions
|
@ -192,7 +192,9 @@ static void
|
|||
meta_wayland_tablet_seat_device_added (MetaWaylandTabletSeat *tablet_seat,
|
||||
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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue