Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to create one application in ubuntu which should run in the background. It needs to be informed when the focussed window changes. Basically I need to run a callback function in my application on window focus change event.

I have never programmed anything in ubuntu. I am not sure how to move ahead.

share|improve this question

marked as duplicate by Eric Carvalho, Luis Alvarado Aug 8 '13 at 9:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You should start here:

This is an easy tutorial:

Enjoy it!

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.