netwm type stupports an array of types. we dont handle it. bad. for now take

only the most important one (first) and note this issue.


SVN revision: 33944
This commit is contained in:
Carsten Haitzler 2008-03-06 10:19:21 +00:00
parent 79a5be8ec3
commit 69f298c228
1 changed files with 7 additions and 0 deletions

View File

@ -1017,12 +1017,19 @@ ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
if (type)
{
*type = _ecore_x_netwm_window_type_type_get(atoms[0]);
if (num > 1)
{
// FIXME: mor than 1? what to do?
}
/* disable - preferred type is the first - others are hints
for (i = 0; i < num; ++i)
{
*type = _ecore_x_netwm_window_type_type_get(atoms[i]);
if (*type != ECORE_X_WINDOW_TYPE_UNKNOWN)
break;
}
*/
}
free(atoms);