From: Marco Peereboom Date: Thu, 22 Jan 2009 18:11:52 +0000 (+0000) Subject: Add kill window fro pirofti X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=e8cdd58b888631f4fd096d13cae019ac5e80e5f4;p=spectrwm.git Add kill window fro pirofti --- diff --git a/scrotwm.c b/scrotwm.c index c4a6ae8..7bf77c4 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1394,6 +1394,14 @@ send_to_ws(struct swm_region *r, union arg *args) stack(); } +void +wkill(struct swm_region *r, union arg *args) +{ + DNPRINTF(SWM_D_MISC, "wkill\n"); + if(r->ws->focus != NULL) + XKillClient(display, r->ws->focus->id); +} + /* key definitions */ struct key { unsigned int mod; @@ -1443,6 +1451,7 @@ struct key { { MODKEY, XK_b, bar_toggle, {0} }, { MODKEY, XK_Tab, focus, {.id = SWM_ARG_ID_FOCUSNEXT} }, { MODKEY | ShiftMask, XK_Tab, focus, {.id = SWM_ARG_ID_FOCUSPREV} }, + { MODKEY | ShiftMask, XK_x, wkill, {0} }, }; void