e_hwc_window: Fix crash when hwc_window is recreated for changing zone 33/320833/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 7 Mar 2025 09:26:52 +0000 (18:26 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 10 Mar 2025 04:12:36 +0000 (13:12 +0900)
if hwc_window is recreated and hwc_window is activate state,
it is possible that destroy callback of cqueue is not called
even if cqueue is destroyed if previous hwc_window(active state)
is reset callback of cqueue.
so call deactivate with previous hwc_window when whc_window is
recreated for changing zone.

Change-Id: I3474148245b2cabd8fe79e2705fae48b84755ff4

src/bin/displaymgr/e_hwc_window.c

index 103f06a546f45e1569b473c14fa69d138d3ddb46..dde98afe5642b15c5973f600ea61ebfa1bbf1078 100644 (file)
@@ -1365,6 +1365,7 @@ _e_hwc_window_client_cb_zone_set(void *data, int type, void *event)
         is_video = e_hwc_window_is_video(hwc_window);
         e_hwc_window_restriction_set(hwc_window, E_HWC_WINDOW_RESTRICTION_DELETED);
         e_hwc_window_client_type_override(hwc_window);
+        e_hwc_window_deactivate(hwc_window);
         _e_hwc_window_del(hwc_window);
      }