Fix misbehaving Java apps in dwm