mfwm

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

commit 7e4466e38ec9dc1e598ba06db2efaa2627625c7a
parent 56bdacaa8477ab67312f2eab275dec9ad26b0d88
Author: dylan <dylan.araps@gmail.com>
Date:   Thu, 23 Apr 2020 08:21:27 +0300

Merge pull request #60 from dylanaraps/kill

sowm: normal window close
Diffstat:
Msowm.c | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sowm.c b/sowm.c @@ -123,7 +123,15 @@ void win_del(Window w) { } void win_kill(const Arg arg) { - if (cur) XKillClient(d, cur->w); + 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 + }); } void win_center(const Arg arg) {