This is the only missing piece - other code regarding this functionality has already been ported from pre-wlroots source.