e_client: Appy base output resolution to subsurfaces 53/285653/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 15 Dec 2022 06:19:16 +0000 (15:19 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 16 Dec 2022 05:01:34 +0000 (14:01 +0900)
commit4b92e47107c133597de7be9a6d325584139a92a3
treeb5d6cea49b4a68c9f762a79e005f660fcbd31316
parent3fe2f7764b244ca6fd34c1ba483011dca8d4c632
e_client: Appy base output resolution to subsurfaces

This patch is to apply base output resolution of toplevel window to all
subsurfaces. So, it removes call to e_comp_wl_hook_del() and continue to
listen E_COMP_WL_HOOK_SUBSURFACE_CREATE hook point.

Some wayland clients repeatedly reuse wl_surface to create wl_subsurface
with a different parent from previous one. The problem is that the
subsurface can't get applied with base output resolution of a new
toplevel window in this case.

To apply base output resolution of a new parent to all associated
sub-surfaces, we should call e_client_transform_core_update() for a
toplevel window whenever a subsurface gets created with a new parent.

Since e_client_transform_core_update() recursively updates transform for
all sub-surfaces, calling e_client_transform_core_update() for a
toplevel window should also update transform for all subsurfaces.

Change-Id: I3253f83e0ab1cf1f5381bbfba2693d9d642d88ca
src/bin/e_client.c