mmi-manager : set client has focus state when it change 82/264082/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 6 Sep 2021 09:08:05 +0000 (18:08 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:26:07 +0000 (20:26 +0900)
Change-Id: I799756d5b3d549351ba9fa231c80fc61b9a4a6a2

src/mmi-manager.c

index 0aa98ad..f89881c 100644 (file)
@@ -173,6 +173,7 @@ _focus_change_cb(void *data EINA_UNUSED, int type, void *event)
        if (ev->cur_focus)
        {
                r = client_manager_send_focus_event(ev->cur_focus, &arg);
+               client_manager_set_client_has_focus(ev->cur_focus, false);
                if (r)
                        LOGE("Failed to send focus event(=%d) to client(%p) !\n",
                                        MMI_EVENT_FOCUS_TYPE_OUT, ev->cur_focus);
@@ -185,6 +186,7 @@ _focus_change_cb(void *data EINA_UNUSED, int type, void *event)
        if (ev->new_focus)
        {
                r = client_manager_send_focus_event(ev->new_focus, &arg);
+               client_manager_set_client_has_focus(ev->new_focus, true);
                if (r)
                        LOGE("Failed to send focus event(=%d) to client(%p) !\n",
                                        MMI_EVENT_FOCUS_TYPE_IN, ev->new_focus);