From 19ef8a2730868fd211be6953e62eef7d60efc809 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 3 Apr 2015 19:36:06 +0900 Subject: [PATCH] read "win_no_border" config value and disable the window border if true 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 | 2 ++ src/lib/elm_priv.h | 1 + src/lib/elm_win.c | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index c604c37..ea12934 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -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; diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h index dbfb8cb..afe3115 100644 --- a/src/lib/elm_priv.h +++ b/src/lib/elm_priv.h @@ -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; diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index ce368db..218c11d 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -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); } -- 2.7.4