add deactivate client's input event when client is removed 26/281626/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 19 Sep 2022 06:04:22 +0000 (15:04 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 20 Sep 2022 05:22:16 +0000 (14:22 +0900)
when client is removed, it needs to stop input event's modalities.
So, it needs to call deactivate input event api, and do drop events

Change-Id: I80a757cd8d5af907590bff391b29c101344ac2d0

src/mmimgr/mmi-client.c

index 8921ad0..61ddd52 100644 (file)
@@ -127,6 +127,12 @@ client_manager_remove_client(const char *sender)
                return MMI_ERROR_INVALID_PARAMETER;
        }
 
+       int res = client_manager_deactivate_input_event(mclient, mclient->activate_event_type);
+       if (res != MMI_ERROR_NONE) {
+               LOGE("Failed to deactivate input event");
+               return res;
+       }
+
        if (eina_hash_del(_client_hash, sender, mclient) == EINA_FALSE) {
                LOGE("Failed to remove client info using sender(%s) !\n", sender);