| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -106,16 +106,18 @@ buttonpress(XEvent *e) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						if(barwin == ev->window) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if(ev->x < modew) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							x = modew; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							for(a.i = 0; a.i < ntags; a.i++) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								x += textw(tags[a.i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								if(ev->x < x) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									if(ev->button == Button1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										view(&a); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									else if(ev->button == Button3) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										toggleview(&a); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								togglemode(NULL); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								x = modew; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								for(a.i = 0; a.i < ntags; a.i++) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									x += textw(tags[a.i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									if(ev->x < x) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										if(ev->button == Button1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											view(&a); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										else if(ev->button == Button3) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											toggleview(&a); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |