Fix dwm work with java app.