1
0
Fork 0
forked from wry/wry

xwayland: allocate sockets from id 500

This commit is contained in:
Julian Orth 2022-07-26 20:31:40 +02:00
parent 05b30c0a09
commit feddb25ee4

View file

@ -94,7 +94,7 @@ pub(super) fn allocate_socket() -> Result<(XSocket, Rc<OwnedFd>), XWaylandError>
Ok(f) => Rc::new(f),
Err(e) => return Err(XWaylandError::SocketFailed(e.into())),
};
for i in 0..1000 {
for i in 500..1500 {
match bind_socket(&fd, i) {
Ok(s) => return Ok(s),
Err(e) => {