Remove redundant update_window() calls 04/262104/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 6 May 2021 12:54:31 +0000 (21:54 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 3 Aug 2021 02:18:21 +0000 (11:18 +0900)
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

scl/sclcontroller.cpp
scl/scluiimpl.cpp

index a6101b4..6e08ae3 100644 (file)
@@ -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;
index 344cdb0..970b0c2 100644 (file)
@@ -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();
             }
         }