mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 00:14:09 +00:00
clutter: Also handle DEVICE_REMOVED events filtered out by event filter
With commit 6c17aa66c6d76d496d3a7614d84eeefe25647a16 we made sure no stale device entries might land in the stage device list. The same can happen for pointer devices too in theory, in practice we never really filter them out, but it's good to handle them here anyway. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2696>
This commit is contained in:
parent
2d85e84136
commit
874a5a6d58
@ -803,7 +803,8 @@ clutter_do_event (ClutterEvent *event)
|
||||
g_slist_delete_link (context->current_event, context->current_event);
|
||||
|
||||
if (event->type == CLUTTER_TOUCH_END ||
|
||||
event->type == CLUTTER_TOUCH_CANCEL)
|
||||
event->type == CLUTTER_TOUCH_CANCEL ||
|
||||
event->type == CLUTTER_DEVICE_REMOVED)
|
||||
{
|
||||
_clutter_stage_process_queued_events (event->any.stage);
|
||||
maybe_remove_device_for_event (event->any.stage, event, TRUE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user