Tweak layer depth distribution (#3738). Add weak pointer handling (#3763). Apply just the changes from the MLT branch which aren't really part of that work (#3793). Add extra UI settings and location manager settings. (#3817). fix misplaced LineOffset and LineGapWidth (#3840).