diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-26 16:24:51 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-26 16:24:51 +0100 |
| commit | bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4 (patch) | |
| tree | 839a6a7e9029d8b00b899a1821341bff15cf7a1c /client.c | |
| parent | Escape -s in dwm.1 (diff) | |
| download | dwm-bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4.tar.gz dwm-bab5b1178dd0a6bfe08e3d658a47b3b5671a93d4.zip | |
removed sendevent
Diffstat (limited to '')
| -rw-r--r-- | client.c | 13 |
1 files changed, 11 insertions, 2 deletions
| @@ -154,10 +154,19 @@ focus(Client *c) { | |||
| 154 | 154 | ||
| 155 | void | 155 | void |
| 156 | killclient(const char *arg) { | 156 | killclient(const char *arg) { |
| 157 | XEvent ev; | ||
| 158 | |||
| 157 | if(!sel) | 159 | if(!sel) |
| 158 | return; | 160 | return; |
| 159 | if(isprotodel(sel)) | 161 | if(isprotodel(sel)) { |
| 160 | sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]); | 162 | ev.type = ClientMessage; |
| 163 | ev.xclient.window = sel->win; | ||
| 164 | ev.xclient.message_type = wmatom[WMProtocols]; | ||
| 165 | ev.xclient.format = 32; | ||
| 166 | ev.xclient.data.l[0] = wmatom[WMDelete]; | ||
| 167 | ev.xclient.data.l[1] = CurrentTime; | ||
| 168 | XSendEvent(dpy, sel->win, False, NoEventMask, &ev); | ||
| 169 | } | ||
| 161 | else | 170 | else |
| 162 | XKillClient(dpy, sel->win); | 171 | XKillClient(dpy, sel->win); |
| 163 | } | 172 | } |
