BQFOYJRTLAFIBZ3SOERSUB2ZXMXJUAROXOGMGWHJW4CVBRT4R5QAC
AYQYCR7JKWTAZASLQTY5DPVI6A5MN6X4XMPC3GBS5KJRH3EGRPIQC
LSQ7OPL7Z5WJDO7ZZS3D4UPMEEWUUF2LNQ3FZUWWFUVZEXA7CIOAC
RPECDMZ4O7MMU32H6Z7EW75GRVEQ6IJYNPWSV54HUPTCX5H7I26QC
VODZCAIINDFQAU6RUV5VBRGJSMCWNMYAQ3ZE56SNBYU2WOSHFOMAC
K3I54HXNNCTEA7L6UGWIVBFB5TPZVZZXDBRSR2YZDIKREXQVWRIQC
KWR2TS2D7YN4LCGMQZ35V4WBLQDHAVSZJV3SZAIR5HQRSJAWLWCQC
fn normalize_focus(&self, focus: Index, x: i32, y: i32) -> (Index, i32, i32) {
let (focus, x) = self.normalize_x(focus, x);
let (focus, y) = self.normalize_y(focus, y);
(focus, x, y)
fn normalize_focus(&self, focus: Focus) -> Focus {
let (screen, x, y) = (focus.screen, focus.pos.x, focus.pos.y);
let (screen, x) = self.normalize_x(screen, x);
let (screen, y) = self.normalize_y(screen, y);
Focus {
screen: screen,
pos: Dimensions { x: x, y: y },
}
Some(focus) => return self.normalize_x(focus, x + self.screens[focus as usize].size.x - 40),
None => (),
Some(focus) => self.normalize_x(focus, x + self.screens[focus as usize].size.x - 40),
None => (focus, 0),
Some(focus) => return self.normalize_y(focus, y + self.screens[focus as usize].size.y - 40),
None => (),
Some(focus) => self.normalize_y(focus, y + self.screens[focus as usize].size.y - 40),
None => (focus, 0),
io::NetEvent::Focus(focus, pos) => {
let was_focused = self.cluster.locally_focused();
self.cluster.refocus(&self.host, focus, pos.x, pos.y, was_focused);
io::NetEvent::Focus(focus) => {
self.cluster.refocus(&self.host, focus);