feat: add force option in killclient

This commit is contained in:
Davide Greco 2026-06-04 10:42:26 +08:00 committed by DreamMaoMao
parent 13e9cfb237
commit cc20d5cff0
5 changed files with 34 additions and 2 deletions

View file

@ -86,4 +86,10 @@ void client_active(Client *c) {
target = get_tags_first_tag(c->tags);
view_in_mon(&(Arg){.ui = target}, true, c->mon, true);
focusclient(c, 1);
}
void client_pending_force_kill(Client *c) {
if (!c)
return;
kill(c->pid, SIGKILL);
}