Proper java nonreparenting wm fix