fix idle calculation if not using LIBXSS

the inp_get_char was never returning ERR even without getting any input
so the idle timeout stuff was wasting CPU and wasn't working if LIBXSS
wasn't used.
Merge remote-tracking branch 'savar/master'
Merge branch 'master' into xep-0223