From 6fd934872a3c9f868bed5bd2f5ee33f0cb748912 Mon Sep 17 00:00:00 2001 From: tcmal Date: Tue, 13 Aug 2024 22:27:16 +0100 Subject: Move to one list of clients, shared across monitors --- src/helpers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helpers.rs') 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:?}"); } } -- cgit v1.2.3