discomfitor pushed a commit to branch master.

commit 69b4a51c871938ad1be40d257f05bbf11313fe15
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jun 11 13:58:00 2013 +0100

    delete an existing comp win if it's set to be ignored
---
 src/bin/e_comp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 0a25fe4..2277ddc 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -5483,8 +5483,14 @@ e_comp_util_wins_print(const E_Comp *c)
 EAPI void
 e_comp_ignore_win_add(Ecore_X_Window win)
 {
+   E_Comp_Win *cw;
+
    EINA_SAFETY_ON_TRUE_RETURN(_e_comp_ignore_find(win));
    eina_hash_add(ignores, e_util_winid_str_get(win), (void*)1);
+   cw = _e_comp_win_find(win);
+   if (!cw) return;
+   cw->invalid = 1;
+   _e_comp_win_del(cw);
 }
 
 EAPI void

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to