AYQYCR7JKWTAZASLQTY5DPVI6A5MN6X4XMPC3GBS5KJRH3EGRPIQC
}
pub fn reset_local(&mut self) {
for ip in util::my_ips().unwrap() {
for (i, screen) in self.screens.iter().enumerate() {
for addr in &screen.addrs {
if addr.0.ip() == ip {
println!("Local screen at {}", i);
self.local = i as Index;
return;
}
}
}
}
panic!("Local IP was not found in cluster");
self.refocus(host, focus, x, y, was_focused);
}
pub fn reset_local(&mut self) {
'outer: for ip in util::my_ips().unwrap() {
for (i, screen) in self.screens.iter().enumerate() {
for addr in &screen.addrs {
if addr.0.ip() == ip {
println!("Local screen at {}", i);
self.local = i as Index;
return;
}
}
}
}
panic!("Local IP was not found in cluster");
other.reset_local();
other.refocus(host, focus, x, y, self.locally_focused());
*self = other;