Only manage InputOutput windows.

This commit is contained in:
Kim Woelders 2013-11-24 16:03:54 +01:00
parent 1294510ef2
commit addfbbc75b
2 changed files with 10 additions and 7 deletions

View File

@ -330,6 +330,11 @@ EobjRegisterOR(Window xwin __UNUSED__, XWindowAttributes * pxwa __UNUSED__,
}
if (!pxwa->override_redirect)
return NULL;
#ifndef __cplusplus
#define c_class class
#endif
if (pxwa->c_class != InputOutput)
return NULL;
win = ERegisterWindow(xwin, pxwa);
if (!win)
@ -339,13 +344,6 @@ EobjRegisterOR(Window xwin __UNUSED__, XWindowAttributes * pxwa __UNUSED__,
if (!eo)
return eo;
#if __cplusplus
if (attr.c_class == InputOnly)
#else
if (attr.class == InputOnly)
#endif
eo->inputonly = 1;
eo->external = 1;
eo->fade = 1;
eo->shadow = 1;

View File

@ -750,6 +750,11 @@ AddToFamily(EWin * ewin, Window xwin, XWindowAttributes * pxwa, int startup)
if (!EXGetWindowAttributes(xwin, &attr))
goto done;
}
#ifndef __cplusplus
#define c_class class
#endif
if (pxwa->c_class != InputOutput)
goto done;
if (ewin)
EwinCleanup(ewin);