Fix notification stacking.

fixes #944
Merge pull request #1345 from halfdan/944-crazy-notifications

Fix notification stacking.