mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-08-05 06:32:01 -07:00
sowm: revert normal kill
This commit is contained in:
12
sowm.c
12
sowm.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user