Stupid me.

SVN revision: 15106
This commit is contained in:
sebastid 2005-06-03 19:46:40 +00:00 committed by sebastid
parent 9f6deaadf2
commit 760a75c48c
2 changed files with 4 additions and 14 deletions

View File

@ -845,7 +845,8 @@ typedef enum _Ecore_X_Window_Type {
ECORE_X_WINDOW_TYPE_UTILITY,
ECORE_X_WINDOW_TYPE_SPLASH,
ECORE_X_WINDOW_TYPE_DIALOG,
ECORE_X_WINDOW_TYPE_NORMAL
ECORE_X_WINDOW_TYPE_NORMAL,
ECORE_X_WINDOW_TYPE_UNKNOWN
} Ecore_X_Window_Type;
typedef enum _Ecore_X_Action {

View File

@ -1103,7 +1103,7 @@ _ecore_x_netwm_window_type_type_get(Ecore_X_Atom atom)
return ECORE_X_WINDOW_TYPE_NORMAL;
*/
else
return 0;
return ECORE_X_WINDOW_TYPE_UNKNOWN;
}
static Ecore_X_Atom
@ -1165,22 +1165,11 @@ ecore_x_netwm_window_type_get(Ecore_X_Window win)
atoms = (Ecore_X_Atom *) data;
/*
* FIXME: Why does nautilus and gkrellm report NORMAL as the
* first atom, and not the last?
for (i = 0; i < num; ++i)
{
char *s;
s = XGetAtomName(_ecore_x_disp, atoms[i]);
printf("window type: %s\n", s);
XFree(s);
}
*/
ret = ECORE_X_WINDOW_TYPE_NORMAL;
for (i = 0; i < num; ++i)
{
type = _ecore_x_netwm_window_type_type_get(atoms[i]);
if (type)
if (type != ECORE_X_WINDOW_TYPE_UNKNOWN)
{
ret = type;
break;