Hi<br><br>Im a newbie on KDE and PyKDE and am trying to write a python
snippet that will listen for window switches (Alt-Tab or clicking on
taskbar) and write to a logfile for a particular user. I saw a few
examples that use QObject.connect with &quot;activeWindowChanged&quot; signal.
There are couple of problems that I could see there<br>
<br>a) All applications required a KAboutData and KCmdlineArgs before I
got access to KApplication. This created a window that sat there but
did nothing. Im trying to make this run as a non-windowed application
that could be started up on logging into KDE.  I guess Id have to use
the KWindowSystem to listen for all signals that happen on that object.
Is it possible to run this in a windowless mode?<br>
<br>b) Using the same example, I wrote a signal handler that listened
for &quot;activewindowchange&quot;. The callback had a &quot;wid&quot; method, but I
couldnt find any references in PyKDE that would get me the WindowInfo
depending on a Wid. KDE seems to be having a KWin.WindowInfo object but
couldnt find an equivalent in PyKDE. <br>
<br>Any pointers would be great.<br><br>Thanks very much<br><font color="#888888">Raja<br></font>