fix possible segv on restart

SVN revision: 47943
This commit is contained in:
Hannes Janetzek 2010-04-12 03:00:50 +00:00
parent 2522d6fcd8
commit 8eea301bf5
1 changed files with 6 additions and 3 deletions

View File

@ -136,6 +136,8 @@ e_hints_init(void)
if (nwins < 1) break;
if (twin != win) break;
if (ecore_x_netwm_name_get(win, &name))
{
if (name)
{
if (strcmp(name, "Enlightenment"))
{
@ -144,6 +146,7 @@ e_hints_init(void)
}
free(name);
}
}
ecore_x_sync();
if ((ecore_time_get() - ts) > 2.0)
{