kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=7b34f58f224cb26532ba11e46616460c0943942f
commit 7b34f58f224cb26532ba11e46616460c0943942f Author: Kim Woelders <[email protected]> Date: Fri Dec 27 23:20:52 2013 +0100 Add EXWindowOk(). --- src/x.c | 11 +++++++++++ src/xwin.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/x.c b/src/x.c index 88d0d4a..2705017 100644 --- a/src/x.c +++ b/src/x.c @@ -1221,6 +1221,17 @@ EXDrawableOk(Drawable draw) return EXGetGeometry(draw, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } +int +EXWindowOk(Window xwin) +{ + XWindowAttributes xwa; + + if (xwin == None) + return 0; + + return EXGetWindowAttributes(xwin, &xwa); +} + KeyCode EKeysymToKeycode(KeySym keysym) { diff --git a/src/xwin.h b/src/xwin.h index 5fb1942..03a2e43 100644 --- a/src/xwin.h +++ b/src/xwin.h @@ -189,6 +189,7 @@ int ETranslateCoordinates(Win src_w, Win dst_w, int *dest_y_return, Window * child_return); int EXDrawableOk(Drawable draw); +int EXWindowOk(Window xwin); void ESelectInput(Win win, unsigned int event_mask); void ESelectInputChange(Win win, unsigned int set, --
