Fix race conditions when focusing containers.

If the container's set_focus() was called with a visible container (but
not yet visible on the gui), set_focus() thought that the menu was meant
to be focused instead.

This closes #103.
Views: Fix race condition when remembering list indexes.