Ignore input when window not focussed. (#20, #21)