read "win_no_border" config value and disable the window border if true 53/37753/2 accepted/tizen/common/20150407.123350 accepted/tizen/mobile/20150408.015848 accepted/tizen/tv/20150407.082808 accepted/tizen/wearable/20150407.063253 submit/tizen/20150406.073959
authorBoram Park <boram1288.park@samsung.com>
Fri, 3 Apr 2015 10:36:06 +0000 (19:36 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 6 Apr 2015 05:00:12 +0000 (22:00 -0700)
This is Tizen only feature.
This feature is used temporary and it will be changed
to another border mechanism.

Change-Id: I357dcba7bab2b4e4ba6e32d720f51730b67fdb3c

src/lib/elm_config.c
src/lib/elm_priv.h
src/lib/elm_win.c

index c604c37..ea12934 100644 (file)
@@ -507,6 +507,7 @@ _desc_init(void)
    ELM_CONFIG_VAL(D, T, scroll_smooth_future_time, T_DOUBLE);
    ELM_CONFIG_VAL(D, T, scroll_smooth_time_window, T_DOUBLE);
    ELM_CONFIG_VAL(D, T, scale, T_DOUBLE);
+   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); */
@@ -1534,6 +1535,7 @@ _config_load(void)
    _elm_config->scroll_smooth_future_time = 0.0;
    _elm_config->scroll_smooth_time_window = 0.2;
    _elm_config->scale = 1.0;
+   _elm_config->win_no_border = 0;
    _elm_config->bgpixmap = 0;
    _elm_config->compositing = 1;
    _elm_config->font_hinting = 2;
index dbfb8cb..afe3115 100644 (file)
@@ -206,6 +206,7 @@ struct _Elm_Config
    double        scroll_smooth_future_time;
    double        scroll_smooth_time_window;
    double        scale;
+   int           win_no_border;
    int           bgpixmap;
    int           compositing;
    Eina_List    *font_dirs;
index ce368db..218c11d 100644 (file)
@@ -285,6 +285,8 @@ _elm_win_on_resize_obj_changed_size_hints(void *data,
 static void
 _elm_win_img_callbacks_del(Evas_Object *obj, Evas_Object *imgobj);
 static Eina_Bool _elm_win_theme_internal(Eo *obj, Elm_Win_Data *sd);
+static void
+_elm_win_borderless_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Eina_Bool borderless);
 
 #ifdef HAVE_ELEMENTARY_X
 static void _elm_win_xwin_update(Elm_Win_Data *sd);
@@ -3584,6 +3586,10 @@ _elm_win_constructor(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_Type t
         eo_do(obj, eo_event_callback_call(ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_CREATED, NULL));
      }
 
+
+   if(_elm_config->win_no_border)
+     _elm_win_borderless_set(obj, sd, EINA_TRUE);
+
    evas_object_show(sd->edje);
 }