Set the vconf value to send the IME geometry 07/227207/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 10 Mar 2020 09:17:41 +0000 (18:17 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 10 Mar 2020 09:58:21 +0000 (18:58 +0900)
Change-Id: I318385aaa76a56572d2ef544587de5dde285a1a5

src/sclcoreui-efl.cpp

index 4b7d97b..1fc26e0 100644 (file)
@@ -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)