aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-05-19 17:05:52 +0000
committerokan2013-05-19 17:05:52 +0000
commit9b2707d7772bceae892c022721d1f1857984432d (patch)
treed2a3727f684912d27daf8ff24589af914dfa06a8 /xevents.c
parent4168dbb83a4439cdf7fdf6c6ce80bd2008de9ac1 (diff)
downloadcwm-9b2707d7772bceae892c022721d1f1857984432d.tar.gz
add support for _NET_CLOSE_WINDOW
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index f3e7221..de6620a 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.78 2013/05/19 17:03:55 okan Exp $
+ * $OpenBSD: xevents.c,v 1.79 2013/05/19 17:05:52 okan Exp $
*/
/*
@@ -348,6 +348,9 @@ xev_handle_clientmessage(XEvent *ee)
if (e->message_type == cwmh[WM_CHANGE_STATE].atom &&
e->format == 32 && e->data.l[0] == IconicState)
client_hide(cc);
+
+ if (e->message_type == ewmh[_NET_CLOSE_WINDOW].atom)
+ client_send_delete(cc);
}
static void