From 27c5e97d3bbbd54754355f9db89d7c33b6e73d25 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 29 Dec 2012 16:04:42 +0000 Subject: [PATCH] fix elm tooltip borderless display SVN revision: 81879 --- ChangeLog | 4 ++++ NEWS | 1 + src/bin/e_win.c | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 21623b728..42a012ba7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-12-27 Mike Blumenkrantz + + * Fix border(less) style of internal elm tooltip windows + 2012-12-28 Tomas Cech * Fix construction of variant list for setxkbmap diff --git a/NEWS b/NEWS index e4c63bcac..161cac3c2 100644 --- a/NEWS +++ b/NEWS @@ -35,3 +35,4 @@ Fixes: icons * Fixed error in Evry when trying to call edje functions on non-edje object * Fix construction of variant list for setxkbmap + * Fix border(less) style of internal elm tooltip windows diff --git a/src/bin/e_win.c b/src/bin/e_win.c index 3dbf2c9c9..c23701960 100644 --- a/src/bin/e_win.c +++ b/src/bin/e_win.c @@ -67,6 +67,7 @@ _elm_win_trap_show(void *data, Evas_Object *o) E_Container *con = e_util_container_window_find(xwin); Evas *e = evas_object_evas_get(o); Ecore_Evas *ee = ecore_evas_ecore_evas_get(e); + Ecore_X_Window_Type type; if (!con) { @@ -80,6 +81,14 @@ _elm_win_trap_show(void *data, Evas_Object *o) ctx->xwin = xwin; ctx->border = e_border_new(con, xwin, 0, 1); EINA_SAFETY_ON_NULL_RETURN_VAL(ctx->border, EINA_TRUE); + if (ecore_x_netwm_window_type_get(xwin, &type)) + { + if (type == ECORE_X_WINDOW_TYPE_TOOLTIP) + { + eina_stringshare_replace(&ctx->border->bordername, "borderless"); + ctx->border->client.border.changed = 1; + } + } ctx->border->placed = ctx->placed; ctx->border->internal = 1; ctx->border->internal_ecore_evas = ee;