diff options
author | tcmal <me@aria.rip> | 2024-08-13 22:27:16 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-14 17:45:21 +0100 |
commit | 6fd934872a3c9f868bed5bd2f5ee33f0cb748912 (patch) | |
tree | 13f844d164ac7ffe44484ad24bed50ef6393b776 /src/helpers.rs | |
parent | f9d5af7f060ada6f224861967e31bb74a0d24e18 (diff) |
Move to one list of clients, shared across monitors
Diffstat (limited to 'src/helpers.rs')
-rw-r--r-- | src/helpers.rs | 6 |
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:?}"); } } |