e_focus: add code to call e_client_focus_defer_set in mouse down callback 89/297289/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 16 Aug 2023 08:14:53 +0000 (17:14 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 16 Aug 2023 09:23:58 +0000 (18:23 +0900)
commit19923b915d12358ba196beea832594ec0b39fa21
treeb47622635f875ba7bf720c4fabe39383adca0201
parent1c17eec1860e21a7b3ca64b34ec4b8978701f02b
e_focus: add code to call e_client_focus_defer_set in mouse down callback

There is bug that the child window can not get focus when the mouse down event is occured.
In mouse down callback, the window get focus first.

If the window is child and it set the belong_to_parent property to the parent, then the
parent will be raised. The parent window is added to the defer_focus_stack in intercept_raise
callback function.
And finally, the parent window gets the focus by defer_focus policy.

To resolve this problem, we add code that e calls e_client_focus_defer_set for the child window.

Change-Id: I96dd830115213bb93787b1e00fe83e1ca052184c
src/bin/e_focus.c