From: Ji-hoon Lee Date: Thu, 6 May 2021 12:54:31 +0000 (+0900) Subject: Remove redundant update_window() calls X-Git-Tag: submit/tizen/20210803.031958~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6647a66b6a94f9e4d6186618e641ed32370ab384;p=platform%2Fcore%2Fuifw%2Flibscl-ui-nui.git Remove redundant update_window() calls process_input_mode_change() function calls handle_engine_signal() with SIG_INPUTMODE_CHANGE, which then again calls recompute_layout() function and ends up calling update_window() function. So, removed update_window() invocation after the calls process_input_mode_change() and recompute_layout(), to avoid unnecessary screen updates. Change-Id: I9d302328c9a9d211473eca013b66f3723adf8336 --- diff --git a/scl/sclcontroller.cpp b/scl/sclcontroller.cpp index a6101b4..6e08ae3 100644 --- a/scl/sclcontroller.cpp +++ b/scl/sclcontroller.cpp @@ -3810,9 +3810,6 @@ void CSCLController::handle_engine_signal(SclInternalSignal signal, sclwindow ta if (targetWindow != SCLWINDOW_INVALID) { if (cache) cache->recompute_layout(targetWindow); - - // EFL testing - windows->update_window(targetWindow); } } break; diff --git a/scl/scluiimpl.cpp b/scl/scluiimpl.cpp index 344cdb0..970b0c2 100644 --- a/scl/scluiimpl.cpp +++ b/scl/scluiimpl.cpp @@ -244,7 +244,6 @@ CSCLUIImpl::set_input_mode(const sclchar *input_mode) if (controller && windows && handler && focus_handler && mode != NOT_USED) { if (handler->set_input_mode(input_mode)) { ret = controller->process_input_mode_change(mode); - windows->update_window(windows->get_base_window()); focus_handler->init_key_index(); } }