summaryrefslogtreecommitdiff
path: root/src/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.rs')
-rw-r--r--src/helpers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers.rs b/src/helpers.rs
index 175eea9..e67aecc 100644
--- a/src/helpers.rs
+++ b/src/helpers.rs
@@ -73,7 +73,7 @@ pub fn toggle_fullscreen(wm: &mut WM<'_>) {
/// Set the focused tag for the currently selected monitor
pub fn set_tag_focus(wm: &mut WM<'_>, tag_focus: TagFocus) {
wm.clients
- .set_mon_tag_focus(&wm.conn, wm.clients.focused_mon(), tag_focus);
+ .set_mon_tag_focus(&wm.conn, wm.clients.focused_mon_idx(), tag_focus);
}
/// Set the tag for the currently selected client
@@ -86,13 +86,13 @@ pub fn set_tag(wm: &mut WM<'_>, tag: Tag) {
/// Move the currently focused window with the mouse
pub fn mouse_move(wm: &mut WM<'_>) {
if let Err(e) = wm.mouse_move() {
- println!("error when moving with mouse: {:?}", e);
+ println!("error when moving with mouse: {e:?}");
}
}
/// Resize the currently focused window with the mouse
pub fn mouse_resize(wm: &mut WM<'_>) {
if let Err(e) = wm.mouse_resize() {
- println!("error when resizing with mouse: {:?}", e);
+ println!("error when resizing with mouse: {e:?}");
}
}