OutputOrderWatcher: use std::ranges to simplify code

Reason for the change

Simplify the code

Test plan

Test multiscreen works on Wayland

Screenshots or screen recordings

Bugs fixed

Merge request reports

Loading