Observe application activation as well as focus changes.

Fixes #19

The problem is that focus notifications only happen for intra-application window
focuses, but activation notifications will catch inter-application window
focuses.