e_hwc_window: fix problem that cursor window is freed even if it is displayed 88/291688/1 accepted/tizen/unified/20230421.103339
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 20 Apr 2023 06:55:51 +0000 (15:55 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 20 Apr 2023 08:24:22 +0000 (17:24 +0900)
buffer_ref of commit data can be changed to null when client destroy wl_buffer.
the problem is occurred when client destroy wl_buffer between commit and
commit_handler.

this patch use cursor info of the commit_data  instead buffer_ref for checking
whether the commit_data enable/disable display.

Change-Id: I23d3c986a499c0bdfe81495e9c166a4f82c32f91

src/bin/e_hwc_window.c

index 2628ed7..82cf6b1 100644 (file)
@@ -1807,7 +1807,7 @@ e_hwc_window_commit_data_release(E_Hwc_Window *hwc_window, E_Hwc_Window_Commit_D
 
         CLEAR(info);
 
-        if (commit_data->buffer_ref.buffer)
+        if (memcmp(&commit_data->info, &info, sizeof(tdm_hwc_window_info)))
           {
              e_comp_wl_buffer_reference(&hwc_window->display.buffer_ref,
                                         commit_data->buffer_ref.buffer);