Fix showing of windows if we are starting afresh

SVN revision: 13030
This commit is contained in:
handyande 2005-01-20 14:22:51 +00:00 committed by handyande
parent 4266071f5f
commit 6cb3279264
1 changed files with 13 additions and 2 deletions

View File

@ -521,8 +521,9 @@ _e_main_screens_init(void)
ret = ecore_x_window_prop_card32_get(windows[i],
E_ATOM_MANAGED,
&ret_val, 1);
if (((att.visible) && (!att.override) &&
(!att.input_only)) || (ret > -1 && ret_val == 1))
/* we have seen this window before */
if (ret > -1 && ret_val == 1)
{
E_Border *bd;
@ -551,6 +552,16 @@ _e_main_screens_init(void)
if ((ret > -1) && ret_val)
e_border_iconify(bd);
}
else if ((att.visible) && (!att.override) &&
(!att.input_only))
{
/* We have not seen this window, and X tells us it
* should be seen */
E_Border *bd;
bd = e_border_new(con, windows[i], 1);
if (bd)
e_border_show(bd);
}
}
}
ecore_x_netwm_desk_roots_set(man->root, 1, &(con->win));