On candidate generation the focused window is now excluded not the
window on the same position.
Does not rely on ui.Main any more
Changes selection behavior, selection now is more natural;