mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-16 14:33:36 -04:00
feat: add force option in killclient
This commit is contained in:
parent
13e9cfb237
commit
cc20d5cff0
5 changed files with 34 additions and 2 deletions
|
|
@ -345,7 +345,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue