[mutter] clutter: Always make the seat handle the events first
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Always make the seat handle the events first
- Date: Sat, 13 Mar 2021 21:54:49 +0000 (UTC)
commit eed368ee91c9444d52b3f9a7f8f54abb7703a505
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Mar 12 20:12:30 2021 +0100
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1779>
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 2efe8e973a..d79b690a3d 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]