Fixed popup menus behaviour

Some popups, like the right click menus on the Apps page or the Search
button, pop up and back down immediately. Now they work as they should.

Fixes #28