turn off scrollbar only when running in window mode,fix flycheck-java loading

fff