elm_config: disable window frame using win_no_border config
authorJiyoun Park <jy0703.park@samsung.com>
Thu, 30 Nov 2017 22:22:20 +0000 (07:22 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 11:33:39 +0000 (20:33 +0900)
border.edc needs to be changed because Tizen UX don't need title.
But the floating window needs border for window resize and move
until finishing migration, disble window frame temporarily like tizen 3.0.

Change-Id: Ibb88f8b15168d86d7660f2cda4e98345586bdc62

src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_config.c
src/lib/elementary/elm_priv.h

index fc1806a..b29301a 100644 (file)
@@ -5142,6 +5142,10 @@ _elm_win_need_frame_adjust(Efl_Ui_Win_Data *sd, const char *engine)
      sd->csd.need = EINA_FALSE;
    else
      sd->csd.need = sd->csd.wayland;
+//TIZEN_ONLY(20171201): Use win_no_border config temporarily.
+   if(_elm_config->win_no_border)
+     sd->csd.need = EINA_FALSE;
+//
 }
 
 static void
index 7b48ad5..fb9ebfc 100644 (file)
@@ -413,6 +413,9 @@ _desc_init(void)
 //   ELM_CONFIG_VAL(D, T, scroll_smooth_future_time, T_DOUBLE); // not used anymore
    ELM_CONFIG_VAL(D, T, scroll_smooth_time_window, T_DOUBLE);
    ELM_CONFIG_VAL(D, T, scale, T_DOUBLE);
+//TIZEN_ONLY(20171201): Use win_no_border config temporarily.
+   ELM_CONFIG_VAL(D, T, win_no_border, T_INT);
+//
    ELM_CONFIG_VAL(D, T, bgpixmap, T_INT);
    ELM_CONFIG_VAL(D, T, compositing, T_INT);
    /* EET_DATA_DESCRIPTOR_ADD_LIST(D, T, "font_dirs", font_dirs, sub_edd); */
@@ -1734,6 +1737,9 @@ _config_load(void)
 //   _elm_config->scroll_smooth_future_time = 0.0; // not used anymore
    _elm_config->scroll_smooth_time_window = 0.15;
    _elm_config->scale = 1.0;
+//TIZEN_ONLY(20171201): Use win_no_border config temporarily.
+   _elm_config->win_no_border = 0;
+//
    _elm_config->bgpixmap = 0;
    _elm_config->compositing = 1;
    _elm_config->font_hinting = 2;
index 2eeeb29..1e21daf 100644 (file)
@@ -354,6 +354,9 @@ struct _Elm_Config
 //   double        scroll_smooth_future_time;; // not used anymore
    double        scroll_smooth_time_window;
    double        scale;
+//TIZEN_ONLY(20171201): Use win_no_border config temporarily.
+   int           win_no_border;
+//
    int           bgpixmap;
    int           compositing;
    Eina_List    *font_dirs; // priv flags for Elm_Config_Flags -> up to here...