mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
clutter: Make ClutterSeat::handle_device_event vfunc more generic
Make it able to handle not just device added/removed events, but perform any kind of post-processing that needed to be done on ClutterEvents at the seat level. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
c3acaeb251
commit
2ceac4a296
@ -1488,8 +1488,8 @@ evdev_remove_device (MetaSeatNative *seat,
|
||||
}
|
||||
|
||||
static gboolean
|
||||
meta_seat_native_handle_device_event (ClutterSeat *seat,
|
||||
ClutterEvent *event)
|
||||
meta_seat_native_handle_event_post (ClutterSeat *seat,
|
||||
const ClutterEvent *event)
|
||||
{
|
||||
MetaSeatNative *seat_native = META_SEAT_NATIVE (seat);
|
||||
ClutterInputDevice *device = event->device.device;
|
||||
@ -2872,7 +2872,7 @@ meta_seat_native_class_init (MetaSeatNativeClass *klass)
|
||||
seat_class->get_supported_virtual_device_types = meta_seat_native_get_supported_virtual_device_types;
|
||||
seat_class->compress_motion = meta_seat_native_compress_motion;
|
||||
seat_class->warp_pointer = meta_seat_native_warp_pointer;
|
||||
seat_class->handle_device_event = meta_seat_native_handle_device_event;
|
||||
seat_class->handle_event_post = meta_seat_native_handle_event_post;
|
||||
seat_class->query_state = meta_seat_native_query_state;
|
||||
|
||||
props[PROP_SEAT_ID] =
|
||||
|
Reference in New Issue
Block a user