e_client: rename focused ec mutex 62/295262/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 4 Jul 2023 07:47:08 +0000 (16:47 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 4 Jul 2023 08:29:45 +0000 (17:29 +0900)
Change-Id: Ib5fad07d9af1bd8626decefa8a9853a8d38ea9bb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/e_client.c

index 1b6bbc1b9e333fe5e09ab8e94c26ee0f50ee34ee..3e2382e5dce8502d27ddcac06565b9689035607d 100644 (file)
@@ -68,7 +68,7 @@ static E_Client_Resize_Object_Create_Cb _e_client_resize_object_create_cb = NULL
 static Eina_Bool _e_calc_visibility = EINA_FALSE;
 static Eina_Bool _e_visibility_changed = EINA_FALSE;
 
-static GMutex focused_ec_lock;
+static GMutex focused_ec_mutex;
 
 EINTERN void e_client_focused_set(E_Client *ec);
 static void _e_client_transient_for_group_make(E_Client *ec, Eina_List **list);
@@ -4306,7 +4306,7 @@ e_client_init(void)
 
    E_COMP_WL_HOOK_APPEND(hooks, E_COMP_WL_HOOK_SHELL_SURFACE_READY, _e_client_cb_hook_shell_surface_ready, NULL);
 
-   g_mutex_init(&focused_ec_lock);
+   g_mutex_init(&focused_ec_mutex);
 
    E_EVENT_CLIENT_ADD = ecore_event_type_new();
    E_EVENT_CLIENT_REMOVE = ecore_event_type_new();
@@ -4351,7 +4351,7 @@ e_client_shutdown(void)
    E_FREE_FUNC(warp_timer, ecore_timer_del);
    warp_client = NULL;
 
-   g_mutex_clear(&focused_ec_lock);
+   g_mutex_clear(&focused_ec_mutex);
 }
 
 E_API void
@@ -5578,9 +5578,9 @@ e_client_focused_set(E_Client *ec)
 
    ELOGF("FOCUS", "CLIENT FOCUS_SET", ec);
 
-   g_mutex_lock(&focused_ec_lock);
+   g_mutex_lock(&focused_ec_mutex);
    focused = ec;
-   g_mutex_unlock(&focused_ec_lock);
+   g_mutex_unlock(&focused_ec_mutex);
 
    if ((ec) && (ec->zone))
      {
@@ -5763,9 +5763,9 @@ E_API E_Client *
 e_client_focused_get(void)
 {
    E_Client *focused_ec = NULL;
-   g_mutex_lock(&focused_ec_lock);
+   g_mutex_lock(&focused_ec_mutex);
    focused_ec = focused;
-   g_mutex_unlock(&focused_ec_lock);
+   g_mutex_unlock(&focused_ec_mutex);
 
    return focused_ec;
 }