mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
add support for _NET_CLOSE_WINDOW
This commit is contained in:
parent
556a50d8f7
commit
c84145661e
1
calmwm.h
1
calmwm.h
@ -545,6 +545,7 @@ enum {
|
|||||||
_NET_WORKAREA,
|
_NET_WORKAREA,
|
||||||
_NET_WM_NAME,
|
_NET_WM_NAME,
|
||||||
_NET_WM_DESKTOP,
|
_NET_WM_DESKTOP,
|
||||||
|
_NET_CLOSE_WINDOW,
|
||||||
EWMH_NITEMS
|
EWMH_NITEMS
|
||||||
};
|
};
|
||||||
struct atom_ctx {
|
struct atom_ctx {
|
||||||
|
@ -348,6 +348,9 @@ xev_handle_clientmessage(XEvent *ee)
|
|||||||
if (e->message_type == cwmh[WM_CHANGE_STATE].atom &&
|
if (e->message_type == cwmh[WM_CHANGE_STATE].atom &&
|
||||||
e->format == 32 && e->data.l[0] == IconicState)
|
e->format == 32 && e->data.l[0] == IconicState)
|
||||||
client_hide(cc);
|
client_hide(cc);
|
||||||
|
|
||||||
|
if (e->message_type == ewmh[_NET_CLOSE_WINDOW].atom)
|
||||||
|
client_send_delete(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user