mmi-manager : resolving when client shutdown, mmi-manager abort unexpected because... 93/264093/1
authordyamy-lee <dyamy.lee@samsung.com>
Wed, 8 Sep 2021 00:48:01 +0000 (09:48 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:26:41 +0000 (20:26 +0900)
When client shutdown, it doesn't need to set 'focus out' about this client, because it already disconnected.
Also, if it need to set 'focus in' to new client which is in _focus_candidates, it should be deleted from _focus_candidates when it set 'focus in'.

Change-Id: I3bd110331048bf847c57d91c24f8256d93b98c11

src/mmi-manager.c

index f89881c169e6e0540bf1237df844aa7cdb5223a5..86c6ce8541b709f015338f8aa0d4e3fac3bc5b71 100644 (file)
@@ -88,7 +88,9 @@ mmi_manager_remove_focus_client(mmi_client *client)
        }
 
        new_focus = eina_list_nth(_focus_candidates, 0);
-       return _add_focus_change_event(client, new_focus);
+       if(new_focus)
+               mmi_manager_remove_client_from_focus_candidates(new_focus);
+       return _add_focus_change_event(NULL, new_focus);
 }
 
 int