1
0
mirror of https://github.com/dylanaraps/sowm.git synced 2025-07-28 10:41:57 -07:00

sowm: revert normal kill

This commit is contained in:
Dylan Araps
2020-04-25 10:47:50 +03:00
parent ea47780ab0
commit dabe77272b

12
sowm.c

@@ -122,17 +122,7 @@ void win_del(Window w) {
} }
void win_kill(const Arg arg) { void win_kill(const Arg arg) {
if (!cur) return; if (cur) XKillClient(d, cur->w);
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) { void win_center(const Arg arg) {