summaryrefslogtreecommitdiff
path: root/src/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.rs')
-rw-r--r--src/helpers.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helpers.rs b/src/helpers.rs
index 5a2844d..819719b 100644
--- a/src/helpers.rs
+++ b/src/helpers.rs
@@ -70,6 +70,13 @@ pub fn toggle_fullscreen(wm: &mut WM<'_>) {
}
}
+/// Send the kill signal to the currently focused client
+pub fn kill_client(wm: &mut WM<'_>) {
+ if let Some(pos) = wm.clients.focused_pos() {
+ wm.clients.kill_client(&wm.conn, pos);
+ }
+}
+
/// Set the focused tag for the currently selected monitor
pub fn set_tag_focus(wm: &mut WM<'_>, tag_focus: TagFocus) {
wm.clients