From a56da0df2c993763cfa984b86891b7052adbb90a Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Thu, 25 Oct 2018 11:15:21 +0900 Subject: [PATCH] Remove unnecessary line setting window size Maximized window does not need to set its size on application side. Because of the unnecessary line setting window size, application could get a black screen for around 2 seconds by window mananger policy. Please refer to following steps. (1) Wearable image > contacts > select one item > message button (2) After step (1), edit message, then added message is not visible because its window size becomes 1000 * 1000 on 360 * 360 wearable screen. Change-Id: I48769b89df3d8598f350564d7124fff16e862821 --- src/w-input-selector.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index f9c1243..1658c9d 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -1260,7 +1260,6 @@ bool __compare_string(const char * smart_str, const char * template_str) bool _app_create(void* user_data) { - int width = 1000, height = 1000; // App_Data* app_data = NULL; Evas_Object* layout = NULL; Evas_Object* conform = NULL; @@ -1284,8 +1283,6 @@ bool _app_create(void* user_data) elm_win_title_set(window, PACKAGE); elm_win_borderless_set(window, EINA_TRUE); -// ecore_x_window_size_get(ecore_x_window_root_first_get(), &width, &height); - evas_object_resize(window, width, height); elm_win_indicator_mode_set(window, ELM_WIN_INDICATOR_SHOW); } else { LOGE("elm_win_add() is failed."); -- 2.7.4