From 6680a35cde09106c741941a066603fb3952fcafa Mon Sep 17 00:00:00 2001 From: Wonsik Jung Date: Wed, 22 Feb 2023 12:08:48 +0900 Subject: [PATCH] [Tizen] Replace natvie window API in SetInputRegion() Replace native window API in SetInputRegion(). Because this function should be used the other native input rect APIs. In addition, some logs are added to the related functions. Change-Id: I76fee7d402d938ab3e1fe48c6ae219a09212eaf5 --- .../tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp index 5a43606..f5d53e4 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp @@ -2066,7 +2066,15 @@ unsigned int WindowBaseEcoreWl2::GetAuxiliaryHintId(const std::string& hint) con void WindowBaseEcoreWl2::SetInputRegion(const Rect& inputRegion) { - ecore_wl2_window_input_region_set(mEcoreWindow, inputRegion.x, inputRegion.y, inputRegion.width, inputRegion.height); + DALI_LOG_RELEASE_INFO("%p, Set input rect (%d, %d, %d x %d)\n", mEcoreWindow, inputRegion.x, inputRegion.y, inputRegion.width, inputRegion.height); + Eina_Rectangle rect; + rect.x = inputRegion.x; + rect.y = inputRegion.y; + rect.w = inputRegion.width; + rect.h = inputRegion.height; + + ecore_wl2_window_input_rect_set(mEcoreWindow, &rect); + ecore_wl2_window_commit(mEcoreWindow, EINA_TRUE); } void WindowBaseEcoreWl2::SetType(Dali::WindowType type) @@ -2879,6 +2887,7 @@ void WindowBaseEcoreWl2::IncludeInputRegion(const Rect& inputRegion) rect.w = inputRegion.width; rect.h = inputRegion.height; + DALI_LOG_RELEASE_INFO("%p, Add input_rect(%d, %d, %d x %d)\n", mEcoreWindow, rect.x, rect.y, rect.w, rect.h); ecore_wl2_window_input_rect_add(mEcoreWindow, &rect); ecore_wl2_window_commit(mEcoreWindow, EINA_TRUE); } @@ -2891,6 +2900,7 @@ void WindowBaseEcoreWl2::ExcludeInputRegion(const Rect& inputRegion) rect.w = inputRegion.width; rect.h = inputRegion.height; + DALI_LOG_RELEASE_INFO("%p, Subtract input_rect(%d, %d, %d x %d)\n", mEcoreWindow, rect.x, rect.y, rect.w, rect.h); ecore_wl2_window_input_rect_subtract(mEcoreWindow, &rect); ecore_wl2_window_commit(mEcoreWindow, EINA_TRUE); } -- 2.7.4