kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=94b810cc37f8a57549818fbc859a04d57d653d4c
commit 94b810cc37f8a57549818fbc859a04d57d653d4c Author: Kim Woelders <k...@woelders.dk> Date: Wed Mar 3 18:22:05 2021 +0100 Add EoGetParent() etc. --- src/eobj.h | 4 +++- src/xwin.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eobj.h b/src/eobj.h index 4aa1a714..59041fc6 100644 --- a/src/eobj.h +++ b/src/eobj.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2019 Kim Woelders + * Copyright (C) 2004-2021 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -74,6 +74,7 @@ struct _eobj { #define EOBJ_TYPE_GLX 8 #define EobjGetWin(eo) ((eo)->win) +#define EobjGetParent(eo) WinGetParent(EobjGetWin(eo)) #define EobjGetXwin(eo) WinGetXwin(EobjGetWin(eo)) #define EobjGetX(eo) WinGetX(EobjGetWin(eo)) #define EobjGetY(eo) WinGetY(EobjGetWin(eo)) @@ -91,6 +92,7 @@ struct _eobj { #define EoObj(eo) (&((eo)->o)) #define EoGetWin(eo) EobjGetWin(EoObj(eo)) +#define EoGetParent(eo) EobjGetParent(EoObj(eo)) #define EoGetXwin(eo) EobjGetXwin(EoObj(eo)) #define EoGetType(eo) EobjGetType(EoObj(eo)) #define EoGetDesk(eo) EobjGetDesk(EoObj(eo)) diff --git a/src/xwin.h b/src/xwin.h index 6f24ae23..e1357439 100644 --- a/src/xwin.h +++ b/src/xwin.h @@ -120,6 +120,7 @@ struct _xwin { Win ELookupXwin(EX_Window xwin); +#define WinGetParent(win) ((win)->parent) #define WinGetXwin(win) ((win)->xwin) #define WinGetPmap(win) ((win)->bgpmap) #define WinGetX(win) ((win)->x) --