mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
sowm: Fix normal kill
This commit is contained in:
parent
0ed080b99c
commit
ea47780ab0
16
sowm.c
16
sowm.c
@ -124,13 +124,15 @@ void win_del(Window w) {
|
|||||||
void win_kill(const Arg arg) {
|
void win_kill(const Arg arg) {
|
||||||
if (!cur) return;
|
if (!cur) return;
|
||||||
|
|
||||||
XSendEvent(d, cur->w, False, NoEventMask, &(XEvent){
|
XEvent ev = { .type = ClientMessage };
|
||||||
.type = ClientMessage,
|
|
||||||
.xclient.window = cur->w,
|
ev.xclient.window = cur->w;
|
||||||
.xclient.message_type = XInternAtom(d, "WM_PROTOCOLS", True),
|
ev.xclient.format = 32;
|
||||||
.xclient.data.l[0] = XInternAtom(d, "WM_DELETE_WINDOW", True),
|
ev.xclient.message_type = XInternAtom(d, "WM_PROTOCOLS", True);
|
||||||
.xclient.data.l[1] = CurrentTime
|
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