logs when X windows become active (in CSV format)