From 838969b4beabe13d18226499e626f0e4bb54bc3d Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 8 Apr 2024 13:55:37 +0900 Subject: [PATCH] e_zone: use wl_signal_emit instead of wl_signal_emit_mutable to avoid the race condition on mutli-threading Change-Id: I1e892cf339d8b230f43967fca7418ba6f1325f37 --- src/bin/e_zone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index 1469f54..1573649 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -1842,7 +1842,7 @@ e_zone_display_state_set(E_Zone *zone, E_Zone_Display_State state) zone->display_state = state; - wl_signal_emit_mutable(&PRI(zone)->events.display_state_change, NULL); + wl_signal_emit(&PRI(zone)->events.display_state_change, NULL); _e_zone_hook_call(E_ZONE_HOOK_DISPLAY_STATE_CHANGE, zone); ev = E_NEW(E_Event_Zone_Display_State_Change, 1); @@ -2306,7 +2306,7 @@ e_zone_client_add(E_Zone *zone, E_Client *ec) _e_zone_client_set(zone, ec); _e_zone_client_data_set(zone, ec); - wl_signal_emit_mutable(&PRI(zone)->events.client_add, ec); + wl_signal_emit(&PRI(zone)->events.client_add, ec); // Currently, ec is set to the current desk now. // At this moment, ec should not belong to any desk @@ -2697,7 +2697,7 @@ e_zone_focus_clear(E_Zone *zone) { EINA_SAFETY_ON_NULL_RETURN(zone); - wl_signal_emit_mutable(&PRI(zone)->events.focus_clear, NULL); + wl_signal_emit(&PRI(zone)->events.focus_clear, NULL); } EINTERN void @@ -2705,7 +2705,7 @@ e_zone_focus_reset(E_Zone *zone) { EINA_SAFETY_ON_NULL_RETURN(zone); - wl_signal_emit_mutable(&PRI(zone)->events.focus_reset, NULL); + wl_signal_emit(&PRI(zone)->events.focus_reset, NULL); } EINTERN void -- 2.7.4