applied sanders patch of not manipulating sel
This commit is contained in:
		
							parent
							
								
									6f20315dff
								
							
						
					
					
						commit
						0925dd588c
					
				
							
								
								
									
										6
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								client.c
									
									
									
									
									
								
							| @ -414,14 +414,16 @@ togglemax(Arg *arg) | |||||||
| void | void | ||||||
| unmanage(Client *c) | unmanage(Client *c) | ||||||
| { | { | ||||||
|  | 	Client *nc; | ||||||
|  | 
 | ||||||
| 	XGrabServer(dpy); | 	XGrabServer(dpy); | ||||||
| 	XSetErrorHandler(xerrordummy); | 	XSetErrorHandler(xerrordummy); | ||||||
| 
 | 
 | ||||||
| 	detach(c); | 	detach(c); | ||||||
| 	detachstack(c); | 	detachstack(c); | ||||||
| 	if(sel == c) { | 	if(sel == c) { | ||||||
| 		for(sel = stack; sel && !isvisible(sel); sel = sel->snext); | 		for(nc = stack; nc && !isvisible(nc); nc = nc->snext); | ||||||
| 		focus(sel); | 		focus(nc); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	XUngrabButton(dpy, AnyButton, AnyModifier, c->win); | 	XUngrabButton(dpy, AnyButton, AnyModifier, c->win); | ||||||
|  | |||||||
							
								
								
									
										8
									
								
								view.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								view.c
									
									
									
									
									
								
							| @ -77,8 +77,8 @@ dofloat(Arg *arg) | |||||||
| 			ban(c); | 			ban(c); | ||||||
| 	} | 	} | ||||||
| 	if(!sel || !isvisible(sel)) { | 	if(!sel || !isvisible(sel)) { | ||||||
| 		for(sel = stack; sel && !isvisible(sel); sel = sel->snext); | 		for(c = stack; c && !isvisible(c); c = c->snext); | ||||||
| 		focus(sel); | 		focus(c); | ||||||
| 	} | 	} | ||||||
| 	restack(); | 	restack(); | ||||||
| } | } | ||||||
| @ -141,8 +141,8 @@ dotile(Arg *arg) | |||||||
| 			ban(c); | 			ban(c); | ||||||
| 	} | 	} | ||||||
| 	if(!sel || !isvisible(sel)) { | 	if(!sel || !isvisible(sel)) { | ||||||
| 		for(sel = stack; sel && !isvisible(sel); sel = sel->snext); | 		for(c = stack; c && !isvisible(c); c = c->snext); | ||||||
| 		focus(sel); | 		focus(c); | ||||||
| 	} | 	} | ||||||
| 	restack(); | 	restack(); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anselm R. Garbe
						Anselm R. Garbe