Fix session id update. Add sanity check.

SVN revision: 26718
This commit is contained in:
Kim Woelders 2006-10-20 20:09:29 +00:00
parent ca624fb15d
commit 13c8539448
1 changed files with 8 additions and 6 deletions

View File

@ -439,17 +439,19 @@ SessionGetInfo(EWin * ewin, Atom atom_change)
Ecore_X_Window win;
int num;
if (ewin->session_id)
{
Efree(ewin->session_id);
ewin->session_id = NULL;
}
/* We can comply with the ICCCM because gtk is working correctly */
if ((atom_change) &&
(!(atom_change == atom_sm_client_id ||
atom_change == atom_wm_client_leader)))
return;
if (!atom_sm_client_id || !atom_wm_client_leader)
return;
if (ewin->session_id)
{
Efree(ewin->session_id);
ewin->session_id = NULL;
}
num = ecore_x_window_prop_window_get(EwinGetClientXwin(ewin),
atom_wm_client_leader, &win, 1);