Manage cursor hiding by timeout