I learned while playing around with another entry that cursor locking is totally broken on macos, and it won't be fixed in winit 0.29, which is sad. It seems best to just not try to do it on that platform.