MCPcopy Create free account
hub / github.com/Henktorius/float / focus_window

Method focus_window

src/wm.rs:315–321  ·  view source on GitHub ↗
(&mut self, n: usize)

Source from the content-addressed store, hash-verified

313 }
314
315 fn focus_window(&mut self, n: usize) {
316 if n < self.windows.len() && n != self.focused {
317 bring_to_front(&mut self.windows, n);
318 self.focused = self.windows.len() - 1;
319 self.dirty = true;
320 }
321 }
322
323 pub fn resize_screen(&mut self, term_rows: u16, term_cols: u16) {
324 self.term_rows = term_rows;

Callers 1

dispatch_altMethod · 0.80

Calls 1

bring_to_frontFunction · 0.85

Tested by

no test coverage detected