Remove unnecessary line setting window size 92/191892/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 Oct 2018 02:15:21 +0000 (11:15 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 Oct 2018 02:22:44 +0000 (11:22 +0900)
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

index f9c1243..1658c9d 100755 (executable)
@@ -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.");