mirror of
https://github.com/brl/mutter.git
synced 2025-01-27 03:49:03 +00:00
aa6888e6bd
So far, we expected all events to have input devices set on them, IM events lost theirs with commit 6aa42d6dadf. This somewhat made sense, because IM events are not backed by any actual device, they are generated by us in response to eg. an OSK key press. To fullfil the assumption that all devices at least have a logical input device set, pass the seat to the clutter_event_im_new() constructor and then set the device to the logical keyboard device. The source_device we leave empty, since there is no actual physical device that this event came from. Fixes: 6aa42d6dadf Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3236>