bar shows if currently is tiled (Mod1-space) or floating (Mod1-Shift-space) mode
This commit is contained in:
		
							parent
							
								
									59b4a5e4ca
								
							
						
					
					
						commit
						54775e0b3e
					
				
							
								
								
									
										6
									
								
								bar.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								bar.c
									
									
									
									
									
								
							| @ -23,11 +23,15 @@ void | |||||||
| draw_bar() | draw_bar() | ||||||
| { | { | ||||||
| 	int i; | 	int i; | ||||||
|  | 	char *mode = arrange == tiling ? "#" : "~"; | ||||||
|  | 
 | ||||||
| 	dc.x = dc.y = 0; | 	dc.x = dc.y = 0; | ||||||
| 	dc.w = bw; | 	dc.w = bw; | ||||||
| 	drawtext(NULL, False, False); | 	drawtext(NULL, False, False); | ||||||
| 
 | 
 | ||||||
| 	dc.w = 0; | 	dc.w = textw(mode) + dc.font.height; | ||||||
|  | 	drawtext(mode, True, True); | ||||||
|  | 
 | ||||||
| 	for(i = 0; i < TLast; i++) { | 	for(i = 0; i < TLast; i++) { | ||||||
| 		dc.x += dc.w; | 		dc.x += dc.w; | ||||||
| 		dc.w = textw(tags[i]) + dc.font.height; | 		dc.w = textw(tags[i]) + dc.font.height; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anselm R. Garbe
						Anselm R. Garbe