kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=addfbbc75bbf48006dd9db5c92065427814769ea
commit addfbbc75bbf48006dd9db5c92065427814769ea Author: Kim Woelders <[email protected]> Date: Sun Nov 24 16:03:54 2013 +0100 Only manage InputOutput windows. --- src/eobj.c | 12 +++++------- src/ewins.c | 5 +++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/eobj.c b/src/eobj.c index 57628d3..32e3c69 100644 --- a/src/eobj.c +++ b/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; diff --git a/src/ewins.c b/src/ewins.c index 8faf2a9..1022db5 100644 --- a/src/ewins.c +++ b/src/ewins.c @@ -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); --
