diff options
Diffstat (limited to 'src/helpers.rs')
-rw-r--r-- | src/helpers.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/helpers.rs b/src/helpers.rs index cc76e43..175eea9 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -82,3 +82,17 @@ pub fn set_tag(wm: &mut WM<'_>, tag: Tag) { wm.clients.set_client_tag(&wm.conn, pos, 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); + } +} + +/// 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); + } +} |