mirror of
https://github.com/brl/mutter.git
synced 2025-01-21 00:48:56 +00:00
89e11e8335
This used to be the HW device that triggered the crossing (i.e. the mouse moving the pointer, etc), or the logical device if the crossing event happened through other means than input device events, e.g. relayouts. The move to ClutterEvent constructors went a bit too far in the simplifications and broke these expectations for input-generated crossing events. Make this event constructor behave like the other events: receive a source device, and figure out the corresponding logical device from there. Also pass the source device as it'd be expected, in the input-induced crossing event generation paths. Fixes: a8c62251f8a ("clutter: Port stage crossing events to new constructors") Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2981 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3256>