Remove unnecessary line setting window size 29/196129/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 Oct 2018 02:15:21 +0000 (11:15 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Mon, 24 Dec 2018 01:53:47 +0000 (10:53 +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 1537d24..7be1bbf 100755 (executable)
@@ -1259,7 +1259,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;
@@ -1283,8 +1282,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.");