Stop constantly bringing window to front.

Fixes #6