subsurface: Handles restack event only for topmost parent of sub-surface. 60/246160/3
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 19 Oct 2020 11:15:23 +0000 (20:15 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 27 Oct 2020 02:32:54 +0000 (11:32 +0900)
commit0ce9e1e920050692e28c75cd1cfc3cc38cc0be2e
tree2ba49a8cb655b937b773d8930e561812bdadd07f
parent2c80683703923f54749a81f410cea50f4d772a3b
subsurface: Handles restack event only for topmost parent of sub-surface.

This patch removes a handler of restack event in e_comp_wl, and adds it
for topmost parent of sub-surface.
Because it's not necessary to handle restack event for sub-surface.
The reason is as follow.

1. Sub-surface can be re-stacked only by a request from wl_client. In
   other words, it shouldn't be re-stacked by compositor policy.
2. A topmost parent of sub-surface can be re-stacked only by compositor
   policy.

For these reason, it's sufficient for sub-surface implementation to add
a handler of restack event for topmost parent.

Change-Id: I6874425fd864c83039911dcf4ece75e5d2c8a79b
src/bin/e_comp_wl.c
src/bin/e_comp_wl_subsurface.c