#include "lx.h" #include "internal.h" int lx_root_depth(LX_CONN *xc, int n) { if ((xc->flags & XCF_FAIL) || (n < 0) || (n >= xc->nscreens)) return(-1); return(xc->screens[n].rootdepth); }