From 7a6db83990cdf1577eeb08168ee54df563b0337d Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 18 Jul 2012 09:15:08 +0000 Subject: [PATCH] fix comp bug when comp module just unloaded - leaving hidden windows exposed. SVN revision: 74054 --- src/modules/comp/e_mod_comp.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/modules/comp/e_mod_comp.c b/src/modules/comp/e_mod_comp.c index 7d31cd1a3..7aff723e3 100644 --- a/src/modules/comp/e_mod_comp.c +++ b/src/modules/comp/e_mod_comp.c @@ -3366,7 +3366,15 @@ static void _e_mod_comp_del(E_Comp *c) { E_Comp_Win *cw; - + Eina_List *l, *hide_bd = NULL; + E_Border *bd; + + EINA_LIST_FOREACH(e_border_client_list(), l, bd) + { + if (!bd->visible) + hide_bd = eina_list_append(hide_bd, bd); + } + if (c->fps_fg) { evas_object_del(c->fps_fg); @@ -3420,6 +3428,12 @@ _e_mod_comp_del(E_Comp *c) ecore_x_window_free(c->cm_selection); ecore_x_e_comp_sync_supported_set(c->man->root, 0); ecore_x_screen_is_composited_set(c->man->num, 0); + + EINA_LIST_FREE(hide_bd, bd) + { + e_border_show(bd); + e_border_hide(bd, 1); + } free(c); }