Hi Christian,
This is not really compiz-specific but should work with every window
manager:
The root window has an Atom _NET_ACTIVE_WINDOW which contains the window
id. This is probably what you want.
Try it out with:
xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"
Cheers,
Raphael
On Wed, 28 Apr 2010 17:51:51 +0200, Christian Mertes
<cmer...@techfak.uni-bielefeld.de> wrote:
Greetings!
I'm currently gathering information that helps software in assessing the
user's context. One very important such data would be the application
that the user is currently working with which mostly is roughly
equivalent to the name of the window that has the focus. Unfortunately
I'm at a loss even about which API to ask for this information. As
personally I am using compiz as a window manager, I'd be glad if anybody
here could tell me about a way to get this information out of compiz,
preferably without modifications to its code. If alternatively someone
knows about ways to do this at a higher level (freedesktop, X, ...), I'd
be happy about any hint.
Many thanks in advance and best regards,
Christian Mertes
--
Dipl.-Medieninf. Raphael Wimmer
Wiss. Mitarbeiter / Research Assistant
LFE Medieninformatik E-Mail:
raphael.wim...@ifi.lmu.de
Ludwig-Maximilians-Universität München Skype: real_raphman
Amalienstr. 17 / Raum 206 WWW:
http://www.medien.ifi.lmu.de
80333 München Tel: +49 (89) 2180-4659
Germany Fax: +49 (89) 2180-99-4659
_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz