From 36cdad66b2354690033709d97ba36222938d4fe2 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Thu, 20 Apr 2023 15:55:51 +0900 Subject: [PATCH] e_hwc_window: fix problem that cursor window is freed even if it is displayed 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_hwc_window.c b/src/bin/e_hwc_window.c index 2628ed7107..82cf6b1b3e 100644 --- a/src/bin/e_hwc_window.c +++ b/src/bin/e_hwc_window.c @@ -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); -- 2.34.1