Set initial latest_transform to 0. 41/244841/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 25 Sep 2020 02:16:26 +0000 (11:16 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 25 Sep 2020 02:16:30 +0000 (11:16 +0900)
 - When the initial transform of wl_egl_window is passed to tpl_surface
  without being 0, the transform value may not be notified to the server.
 - Therefore, in tpl_surface, latest_transform must be set to 0.

Change-Id: I3f586f64ded24dd570837bcff5bb4f938f384865
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl.c
src/tpl_wayland_egl_thread.c

index 19611a7b5bc2c7b9efc9e66d50c6902593405b30..1a57feffb21d7f419279073f9ea1e7536468ca5f 100755 (executable)
@@ -640,7 +640,7 @@ __tpl_wayland_egl_surface_init(tpl_surface_t *surface)
        surface->rotation = tizen_private->rotation;
        surface->rotation_capability = TPL_FALSE;
 
-       wayland_egl_surface->latest_transform = tizen_private->transform;
+       wayland_egl_surface->latest_transform = 0;
        wl_egl_window->resize_callback = (void *)__cb_client_window_resize_callback;
        wl_egl_window->destroy_window_callback = (void *)__cb_client_window_destroy_callback;
 
index 27adc14ce7bc5e490ff9cfc81d10a42ae96ab49c..416ab358c912634ed3159fd51e667500b58fb7e1 100755 (executable)
@@ -3180,8 +3180,6 @@ twe_surface_add(twe_thread* thread,
                        private->create_presentation_sync_fd = (void *)__cb_create_presentation_sync_fd;
                        private->merge_sync_fds = (void *)__cb_merge_sync_fds;
 
-                       source->latest_transform = private->transform;
-
                        wl_egl_window->destroy_window_callback = (void *)__cb_destroy_callback;
                        wl_egl_window->resize_callback = (void *)__cb_resize_callback;
                }