add support for _NET_CLOSE_WINDOW

This commit is contained in:
okan 2013-05-19 17:05:52 +00:00
parent 556a50d8f7
commit c84145661e
3 changed files with 5 additions and 0 deletions

View File

@ -545,6 +545,7 @@ enum {
_NET_WORKAREA,
_NET_WM_NAME,
_NET_WM_DESKTOP,
_NET_CLOSE_WINDOW,
EWMH_NITEMS
};
struct atom_ctx {

View File

@ -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

View File

@ -256,6 +256,7 @@ struct atom_ctx ewmh[EWMH_NITEMS] = {
{"_NET_WORKAREA", None},
{"_NET_WM_NAME", None},
{"_NET_WM_DESKTOP", None},
{"_NET_CLOSE_WINDOW", None},
};
void