win = g_list_find (priv->window_list, window);
if (win) {
/* this is for the case we want to register the window and it was already
win = g_list_find (priv->window_list, window);
if (win) {
/* this is for the case we want to register the window and it was already