mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit dabe77272b3e90e3fd8bea6c268358b5f1ac4b03
parent ea47780ab0f986760d5f4bcc9a69babd52917bc8
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 25 Apr 2020 10:47:50 +0300

sowm: revert normal kill

Diffstat:
Msowm.c | 12+-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -122,17 +122,7 @@ void win_del(Window w) { } void win_kill(const Arg arg) { - if (!cur) return; - - XEvent ev = { .type = ClientMessage }; - - ev.xclient.window = cur->w; - ev.xclient.format = 32; - ev.xclient.message_type = XInternAtom(d, "WM_PROTOCOLS", True); - ev.xclient.data.l[0] = XInternAtom(d, "WM_DELETE_WINDOW", True); - ev.xclient.data.l[1] = CurrentTime; - - XSendEvent(d, cur->w, False, NoEventMask, &ev); + if (cur) XKillClient(d, cur->w); } void win_center(const Arg arg) {