C++/Shell Integration

Dirk Wallenstein halsmit at t-online.de
Sat May 15 23:44:47 PDT 2010


On Sat, May 15, 2010 at 11:41:45PM +0100, Mubarak Aguye wrote:
>    Hi. I was wondering if there is a way of determining the title of the
>    current active window, and its x-y coordinates from within a C++
>    application, or even a standard Linux shell.

For the shell, you could use 'xwininfo'.
For C++, you would use XWindowAttributes and Properties.
http://www.x.org/docs/X11/xlib.pdf (Chapter 3)
http://tronche.com/gui/x/xlib/window-information/

-- 
Dirk



More information about the xorg mailing list