more anti-Java-breakage measures for dwm