On 25 March 2012 13:37, Swiatoslaw Gal <swiatoslaw....@univie.ac.at> wrote: > How can I get a xid of a focused window? Like with xprop, but > without user interaction. Say, I want to write an program > that would log the xid of a currently focused window every second.
http://tronche.com/gui/x/xlib/input/XGetInputFocus.html Cheers, Anselm