mfwm

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

commit ea47780ab0f986760d5f4bcc9a69babd52917bc8
parent 0ed080b99c27d89801b805302e91393b33523bac
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 23 Apr 2020 08:40:08 +0300

sowm: Fix normal kill

Diffstat:
Msowm.c | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

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