mirror of
https://github.com/brl/mutter.git
synced 2025-01-10 11:42:49 +00:00
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
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user