fix elm tooltip borderless display

SVN revision: 81879
This commit is contained in:
Mike Blumenkrantz 2012-12-29 16:04:42 +00:00
parent 4f7185d6d5
commit 27c5e97d3b
3 changed files with 14 additions and 0 deletions

View File

@ -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

1
NEWS
View File

@ -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

View File

@ -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;