How best to handle a popup gaining focus in the middle of the user typing? I would say the OS should take care of that, and the standard settings on Ubuntu are not strict enough for my liking, when I start Firefox and then start working in a terminal, the focus will be stolen by Firefox when it has finished loading.