mfwm

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

commit b0a8d244e0ae726f5b59a032f0edd13fe15b525b
parent cd03f2e3d1e7015efa66313cb04613a26a908e1b
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 17 Oct 2019 19:48:23 +0300

patches: rebase

Diffstat:
Mpatches/sowm-normal-kill.patch | 42+++++++++++++++++++++++++++++++++++-------
1 file changed, 35 insertions(+), 7 deletions(-)

diff --git a/patches/sowm-normal-kill.patch b/patches/sowm-normal-kill.patch @@ -1,12 +1,40 @@ +diff --git a/patches/sowm-normal-kill.patch b/patches/sowm-normal-kill.patch +index 4b11cd4..e69de29 100644 +--- a/patches/sowm-normal-kill.patch ++++ b/patches/sowm-normal-kill.patch +@@ -1,23 +0,0 @@ +-diff --git a/sowm.c b/sowm.c +-index 0d74d4b..ff70968 100644 +---- a/sowm.c +-+++ b/sowm.c +-@@ -326,7 +326,17 @@ void win_del(Window w) { +- "Shoot first and don't ask questions later?.." +- */ +- void win_kill() { +-- if (win_current() != root) XKillClient(d, cur); +-+ if (win_current() == root) return; +-+ +-+ XEvent ev = { .type = ClientMessage }; +-+ +-+ ev.xclient.window = cur; +-+ 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, False, NoEventMask, &ev); +- } +- +- /* diff --git a/sowm.c b/sowm.c -index 0d74d4b..ff70968 100644 +index 126aca0..cd8af6f 100644 --- a/sowm.c +++ b/sowm.c -@@ -326,7 +326,17 @@ void win_del(Window w) { - "Shoot first and don't ask questions later?.." - */ +@@ -180,7 +180,17 @@ void win_del(Window w) { + } + void win_kill() { -- if (win_current() != root) XKillClient(d, cur); +- if (win_current() ^ root) XKillClient(d, cur); + if (win_current() == root) return; + + XEvent ev = { .type = ClientMessage }; @@ -19,5 +47,5 @@ index 0d74d4b..ff70968 100644 + + XSendEvent(d, cur, False, NoEventMask, &ev); } - - /* + + void win_center(const Arg arg) {