Em 03/05/2014 14:02, "Keith Packard" <[email protected]> escreveu: > You should use XParseGeometry or even XWMGeometry. If you want to avoid > Xlib, you should hack those functions into something that could be > included in an xcb utility library (probably util-wm). > > I couldn't find anything suitable in xcb yet, but I didn't do more than > a few simple greps; maybe there's already something to do this?
Kdrive has its own "geometry" parsing algorithm, the function KdParseScreen() in file kdrive.c. I've extended it to include +X+Y parsing. See my previous patch at http://lists.x.org/archives/xorg-devel/2014-February/040606.html This patch supports -X-Y syntax, but I could simplify it by supporting +-X+-Y only, so that the character + can be interpreted as the only delimiter for window placement.
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
