aboutsummaryrefslogtreecommitdiff
path: root/src/desktop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.rs')
-rw-r--r--src/desktop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/desktop.rs b/src/desktop.rs
index 7d2a8a5..520c196 100644
--- a/src/desktop.rs
+++ b/src/desktop.rs
@@ -72,6 +72,8 @@ impl Desktop {
}
}
+ /// Changes the focus from the current window to the window on the idx
+ /// postition on the window_list.
pub fn change_focus_of(&mut self, idx: usize) {
let w = &self.window_list[idx];
self.unfocus_current_window();