dwm.c
changeset 1369 79bf47074a49
parent 1366 335301ed102f
child 1370 6d6ed7a9183c
equal deleted inserted replaced
1368:94032e7d3943 1369:79bf47074a49
  1649 void
  1649 void
  1650 updatewmhints(Client *c) {
  1650 updatewmhints(Client *c) {
  1651 	XWMHints *wmh;
  1651 	XWMHints *wmh;
  1652 
  1652 
  1653 	if((wmh = XGetWMHints(dpy, c->win))) {
  1653 	if((wmh = XGetWMHints(dpy, c->win))) {
  1654 		if(ISVISIBLE(c) && wmh->flags & XUrgencyHint) {
  1654 		if(c == sel && wmh->flags & XUrgencyHint) {
  1655 			wmh->flags &= ~XUrgencyHint;
  1655 			wmh->flags &= ~XUrgencyHint;
  1656 			XSetWMHints(dpy, c->win, wmh);
  1656 			XSetWMHints(dpy, c->win, wmh);
  1657 		}
  1657 		}
  1658 		else
  1658 		else
  1659 			c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
  1659 			c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;