wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 25067751f734cb9d3c8974a2533c866b335b3e73
parent bf6776794cdec09e07da675232e5d2ef53ce3b92
Author: Kris Maglione <jg@suckless.org>
Date:   Thu,  8 Feb 2007 21:50:49 -0500

Added Urgent and NotUrgent events for the urgency hint


Diffstat:
client.c | 12++++++++++++
wmii.h | 1+
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/client.c b/client.c @@ -244,6 +244,7 @@ kill_client(Client * c) { void prop_client(Client *c, XPropertyEvent *e) { + XWMHints *wmh; long msize; if(e->atom == wm_atom[WMProtocols]) { @@ -265,6 +266,17 @@ prop_client(Client *c, XPropertyEvent *e) { else c->fixedsize = False; break; + case XA_WM_HINTS: + wmh = XGetWMHints(blz.dpy, c->win); + if(wmh->flags&XUrgencyHint && !client->urgent) { + write_event("Urgent 0x%x\n", client->win);; + client->urgent = True; + } + else if(!(wmh->flags&XUrgencyHint) && client->urgent) { + write_event("NotUrgent 0x%x\n", client->win);; + client->urgent = False; + } + break; } if(e->atom == XA_WM_NAME || e->atom == net_atom[NetWMName]) { update_client_name(c); diff --git a/wmii.h b/wmii.h @@ -143,6 +143,7 @@ struct Client { int proto; Bool floating; Bool fixedsize; + Bool urgent; Window win; Window trans; Window framewin;