mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 01:20:23 -07:00
sowm: revert normal kill
This commit is contained in:
parent
ea47780ab0
commit
dabe77272b
12
sowm.c
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user