a small fix to buttonpress
This commit is contained in:
		
							parent
							
								
									2f70a14ee1
								
							
						
					
					
						commit
						d99ec61482
					
				
							
								
								
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							| @ -291,8 +291,6 @@ applyrules(Client *c) { | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| void | void | ||||||
| arrange(void) { | arrange(void) { | ||||||
| 	unsigned int i; | 	unsigned int i; | ||||||
| @ -342,6 +340,8 @@ buttonpress(XEvent *e) { | |||||||
| 	if(ev->window == selview->barwin) { | 	if(ev->window == selview->barwin) { | ||||||
| 		x = 0; | 		x = 0; | ||||||
| 		for(i = 0; i < LENGTH(tags); i++) { | 		for(i = 0; i < LENGTH(tags); i++) { | ||||||
|  | 			if(&views[vtags[i]] != selview) | ||||||
|  | 				continue; | ||||||
| 			x += textw(tags[i]); | 			x += textw(tags[i]); | ||||||
| 			if(ev->x < x) { | 			if(ev->x < x) { | ||||||
| 				if(ev->button == Button1) { | 				if(ev->button == Button1) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anselm R Garbe
						Anselm R Garbe