e_focus: use wl_signal_emit 79/309279/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 8 Apr 2024 04:55:04 +0000 (13:55 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 8 Apr 2024 07:32:05 +0000 (16:32 +0900)
instead of wl_signal_emit_mutable to avoid the race condition on mutli-threading

Change-Id: I65e1fe7e54f97554bf13a77bbc198ebf0f320de2

src/bin/e_focus_policy_history.c
src/bin/e_focus_policy_topmost.c

index 72c0fde723e8f0ddbd929855a6dafb9859c607c0..241af48cd4eeb2317537d89234721606f7928cf7 100644 (file)
@@ -546,7 +546,7 @@ static void set_focused_ec(E_Focus_Policy_History *history_policy, E_Client *ec)
 {
    atomic_store(&history_policy->focused_ec, ec);
 
-   wl_signal_emit_mutable(&history_policy->events.focused_ec_changed, ec);
+   wl_signal_emit(&history_policy->events.focused_ec_changed, ec);
 }
 
 static void
index 1c47e09ad5888ef49fd4f861295fbc6dcc1d52ae..4140150ede91b3f9b6535a22be6ffc0b7d6fcd69 100644 (file)
@@ -275,7 +275,7 @@ static void set_focused_ec(E_Focus_Policy_Topmost *topmost_policy, E_Client *ec)
 {
    atomic_store(&topmost_policy->focused_ec, ec);
 
-   wl_signal_emit_mutable(&topmost_policy->events.focused_ec_changed, ec);
+   wl_signal_emit(&topmost_policy->events.focused_ec_changed, ec);
 }
 
 static void