dwm.c
changeset 1122 6f93af279e0a
parent 1121 898952a1689d
child 1123 76f6c8659f40
equal deleted inserted replaced
1121:898952a1689d 1122:6f93af279e0a
  1868 
  1868 
  1869 void
  1869 void
  1870 updatewmhints(Client *c) {
  1870 updatewmhints(Client *c) {
  1871 	XWMHints *wmh;
  1871 	XWMHints *wmh;
  1872 
  1872 
  1873 	if(c == sel)
       
  1874 		return;
       
  1875 	if((wmh = XGetWMHints(dpy, c->win))) {
  1873 	if((wmh = XGetWMHints(dpy, c->win))) {
  1876 		c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
  1874 		if(c == sel)
       
  1875 			sel->isurgent = False;
       
  1876 		else
       
  1877 			c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
  1877 		XFree(wmh);
  1878 		XFree(wmh);
  1878 	}
  1879 	}
  1879 }
  1880 }
  1880 
  1881 
  1881 
  1882