sowm: revert normal kill

This commit is contained in:
Dylan Araps 2020-04-25 10:47:50 +03:00
parent ea47780ab0
commit dabe77272b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 11 deletions

12
sowm.c
View File

@ -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) {