Quozl's Open Source

GTK+ Focus Watch

LinuxC ProgrammingX-Windows Programming

Asks your X server which window you are using and uses the information
to charge your labour to different time tracking tasks. Useful for
people who want to figure out which windows they are spending their
time in, or those who need to fill out a timesheet to get paid.