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 bf61859985
commit b2aad5f8b1
5 changed files with 34 additions and 2 deletions

View file

@ -346,7 +346,11 @@ int32_t setmfact(const Arg *arg) {
int32_t killclient(const Arg *arg) {
Client *c = arg->tc ? arg->tc : (selmon ? selmon->sel : NULL);
if (c) {
pending_kill_client(c);
if (arg->i == FORCE) {
client_pending_force_kill(c);
} else {
pending_kill_client(c);
}
}
return 0;
}