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