From 5f26e4d01ac579acb6850a026d166077d357ad3f Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Mon, 15 Dec 2025 16:32:36 -0500 Subject: [PATCH] m-standard-event-source: Add priority for new 'destroy-' local event types This new event type have the same priority as the 'create-' one. --- modules/module-standard-event-source.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/module-standard-event-source.c b/modules/module-standard-event-source.c index 3260949a..ea2bf3c3 100644 --- a/modules/module-standard-event-source.c +++ b/modules/module-standard-event-source.c @@ -158,7 +158,8 @@ static gint get_default_event_priority (const gchar *event_type) { if (g_str_has_prefix(event_type, "select-") || - g_str_has_prefix(event_type, "create-")) + g_str_has_prefix(event_type, "create-") || + g_str_has_prefix(event_type, "destroy-")) return 500; if (g_str_has_prefix(event_type, "autoswitch-")) return 400; @@ -212,8 +213,9 @@ static gboolean is_it_local_event (const gchar *event_type) { if (g_str_has_prefix(event_type, "select-") || - g_str_has_prefix(event_type, "create-") || - g_str_has_prefix(event_type, "autoswitch-")) + g_str_has_prefix(event_type, "create-") || + g_str_has_prefix(event_type, "destroy-") || + g_str_has_prefix(event_type, "autoswitch-")) return TRUE; return FALSE;