added some flicker prevention
This commit is contained in:
		
							parent
							
								
									823fb1118a
								
							
						
					
					
						commit
						666fae97e6
					
				
							
								
								
									
										4
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								client.c
									
									
									
									
									
								
							| @ -262,11 +262,13 @@ manage(Window w, XWindowAttributes *wa) | |||||||
| 				c->maxw == c->minw && c->maxh == c->minh); | 				c->maxw == c->minw && c->maxh == c->minh); | ||||||
| 	settitle(c); | 	settitle(c); | ||||||
| 
 | 
 | ||||||
|  | 	if(isvisible(c)) | ||||||
|  | 		sel = c; | ||||||
|  | 	arrange(NULL); | ||||||
| 	XMapWindow(dpy, c->win); | 	XMapWindow(dpy, c->win); | ||||||
| 	XMapWindow(dpy, c->title); | 	XMapWindow(dpy, c->title); | ||||||
| 	if(isvisible(c)) | 	if(isvisible(c)) | ||||||
| 		focus(c); | 		focus(c); | ||||||
| 	arrange(NULL); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user