fixed urgent hint handling
This commit is contained in:
		
							
								
								
									
										5
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								dwm.c
									
									
									
									
									
								
							@@ -1870,9 +1870,10 @@ void
 | 
				
			|||||||
updatewmhints(Client *c) {
 | 
					updatewmhints(Client *c) {
 | 
				
			||||||
	XWMHints *wmh;
 | 
						XWMHints *wmh;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(c == sel)
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
	if((wmh = XGetWMHints(dpy, c->win))) {
 | 
						if((wmh = XGetWMHints(dpy, c->win))) {
 | 
				
			||||||
 | 
							if(c == sel)
 | 
				
			||||||
 | 
								sel->isurgent = False;
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
			c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
 | 
								c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
 | 
				
			||||||
		XFree(wmh);
 | 
							XFree(wmh);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user