aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-26 16:24:51 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-26 16:24:51 +0100
commitbab5b1178dd0a6bfe08e3d658a47b3b5671a93d4 (patch)
tree839a6a7e9029d8b00b899a1821341bff15cf7a1c /client.c
parentee8fb0c6e49780441a91f994595f4de0422df1a8 (diff)
downloaddwm-bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4.tar.gz
dwm-bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4.tar.bz2
dwm-bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4.zip
removed sendevent
Diffstat (limited to 'client.c')
-rw-r--r--client.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/client.c b/client.c
index d180278..e599203 100644
--- a/client.c
+++ b/client.c
@@ -154,10 +154,19 @@ focus(Client *c) {
void
killclient(const char *arg) {
+ XEvent ev;
+
if(!sel)
return;
- if(isprotodel(sel))
- sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]);
+ if(isprotodel(sel)) {
+ ev.type = ClientMessage;
+ ev.xclient.window = sel->win;
+ ev.xclient.message_type = wmatom[WMProtocols];
+ ev.xclient.format = 32;
+ ev.xclient.data.l[0] = wmatom[WMDelete];
+ ev.xclient.data.l[1] = CurrentTime;
+ XSendEvent(dpy, sel->win, False, NoEventMask, &ev);
+ }
else
XKillClient(dpy, sel->win);
}