[PATCH v2 1/2] ephyr: allow starting window at other than 0, 0 location (via kdrive -origin option)

Laércio de Sousa lbsousajr at gmail.com
Sat May 3 11:19:13 PDT 2014

Em 03/05/2014 14:02, "Keith Packard" <keithp at keithp.com> 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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140503/1557e074/attachment.html>

More information about the xorg-devel mailing list