Improve wl_signal_emit() func call when children destroyed 84/317084/1
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Tue, 13 Aug 2024 04:57:29 +0000 (13:57 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 4 Sep 2024 00:53:49 +0000 (09:53 +0900)
commit256205a90777ff97b9d805522a47f0512bb58c1c
tree7f9c678c8f2118b4ccf8193701cecc7849934b50
parentc124bd86fe332c84e3073f04f07fc896b1755669
Improve wl_signal_emit() func call when children destroyed

- AS-IS
if we try to add listener to info (child) using add_destroy_listener() func, listener is added to client (parent) rather than info.

for this reason, when info is destroyed, client's destroy signal is emitted, so all added listeners recive signal.

- TO-BE
client don't have info's destroy signal and info have its own destroy signal. so, when info is destroyed, info emits its own destroy signal.

Change-Id: Ida00bfc4d0bcb51c6df462281413ecf8d8024be0
src/display_policy/display_policy.c
src/global_resource/global_resource.c
src/memory_flusher/memory_flusher.c
src/renderer/renderer.c
src/screen_rotation/screen_rotation.c