Only manage InputOutput windows.
This commit is contained in:
parent
1294510ef2
commit
addfbbc75b
12
src/eobj.c
12
src/eobj.c
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue