From 395e43194f0ea7b1ae4bd317ca823cd3ffc5d5c7 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Mon, 24 Feb 2020 19:49:16 +0900 Subject: [PATCH] e_hwc_window: execute null buffer commit if window state is CLIENT when pp set to notify buffer release to client, execute null buffer commit. Change-Id: I2c598a8fe352c0744093f19ee6882c953f3c72db Signed-off-by: Junkyeong Kim --- src/bin/e_hwc_window.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/bin/e_hwc_window.c b/src/bin/e_hwc_window.c index 49edf75330..4745603fb2 100644 --- a/src/bin/e_hwc_window.c +++ b/src/bin/e_hwc_window.c @@ -2472,7 +2472,14 @@ e_hwc_window_pp_commit_data_acquire(E_Hwc_Window *hwc_window, Eina_Bool pp_hwc_m EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE); } else - return EINA_FALSE; + { + if (!hwc_window->display.buffer.tsurface) return EINA_FALSE; + + commit_data = E_NEW(E_Hwc_Window_Commit_Data, 1); + EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE); + + _e_hwc_window_buffer_set(&commit_data->buffer, NULL, NULL); + } } EHWTRACE("COM ts:%10p ------- {%25s}, state:%s, zpos:%d, deleted:%s", -- 2.34.1