From 02c598b233b43ec1122caaddc77489cd842a2284 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Tue, 10 Mar 2020 18:17:41 +0900 Subject: [PATCH] Set the vconf value to send the IME geometry Change-Id: I318385aaa76a56572d2ef544587de5dde285a1a5 --- src/sclcoreui-efl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index 4b7d97b..1fc26e0 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -168,6 +168,13 @@ void CSCLCoreUIEFL::update_keyboard_geometry(SclSize portrait, SclSize landscape Evas_Coord win_w = 0, win_h = 0; elm_win_screen_size_get(main_window, NULL, NULL, &win_w, &win_h); int degree = elm_win_rotation_get(main_window); + char geometry[128]; + + snprintf(geometry, sizeof(geometry), "%d,%d,%d,%d", (win_w - portrait.width) / 2, win_h - portrait.height, portrait.width, portrait.height); + vconf_set_str(VCONFKEY_ISF_INPUT_PANEL_PORT_GEOMETRY, geometry); + snprintf(geometry, sizeof(geometry), "%d,%d,%d,%d", (win_h - landscape.width) / 2, win_w - landscape.height, landscape.width, landscape.height); + vconf_set_str(VCONFKEY_ISF_INPUT_PANEL_LAND_GEOMETRY, geometry); + CSCLCoreImpl *impl = CSCLCoreImpl::get_instance(); if (impl) { if (degree == 0 || degree == 180) -- 2.34.1