Java fix for dwm.