3 typedef struct _E_Stolen_Window E_Stolen_Window;
5 struct _E_Stolen_Window
11 static Eina_Hash *_e_stolen_windows = NULL;
13 /* externally accessible functions */
15 e_stolen_win_get(Ecore_X_Window win)
19 esw = eina_hash_find(_e_stolen_windows, e_util_winid_str_get(win));
25 e_stolen_win_add(Ecore_X_Window win)
29 esw = eina_hash_find(_e_stolen_windows, e_util_winid_str_get(win));
36 esw = E_NEW(E_Stolen_Window, 1);
39 if (!_e_stolen_windows) _e_stolen_windows = eina_hash_string_superfast_new(NULL);
40 eina_hash_add(_e_stolen_windows, e_util_winid_str_get(win), esw);
46 e_stolen_win_del(Ecore_X_Window win)
50 esw = eina_hash_find(_e_stolen_windows, e_util_winid_str_get(win));
54 if (esw->refcount == 0)
56 eina_hash_del(_e_stolen_windows, e_util_winid_str_get(win), esw);
57 if (!eina_hash_population(_e_stolen_windows))
59 eina_hash_free(_e_stolen_windows);
60 _e_stolen_windows = NULL;