From eed368ee91c9444d52b3f9a7f8f54abb7703a505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 12 Mar 2021 20:12:30 +0100 Subject: clutter: Always make the seat handle the events first Some events such as the proximity one requires a device to be set before we process them, so ensure we process the event details after we've added the device to the seat. This may lead to handle a device-removed signal before the clutter event but it's anyways not different from what we did before commit 012c0a18 Part-of: --- clutter/clutter/clutter-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c index 2efe8e973..d79b690a3 100644 --- a/clutter/clutter/clutter-main.c +++ b/clutter/clutter/clutter-main.c @@ -1909,8 +1909,8 @@ _clutter_process_event (ClutterEvent *event) */ context->current_event = g_slist_prepend (context->current_event, event); - _clutter_process_event_details (stage, context, event); clutter_seat_handle_event_post (seat, event); + _clutter_process_event_details (stage, context, event); context->current_event = g_slist_delete_link (context->current_event, context->current_event); } -- cgit v1.2.1