using BarTop as fallback if BARPOS is set to BarOff as default for toggling
This commit is contained in:
		
							
								
								
									
										7
									
								
								layout.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								layout.c
									
									
									
									
									
								
							@@ -218,7 +218,12 @@ setlayout(const char *arg) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
togglebar(const char *arg) {
 | 
					togglebar(const char *arg) {
 | 
				
			||||||
	bpos = (bpos == BarOff) ? BARPOS : BarOff;
 | 
						if(bpos == BarOff) {
 | 
				
			||||||
 | 
							if((bpos = BARPOS) == BarOff)
 | 
				
			||||||
 | 
								bpos = BarTop;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							bpos = BarOff;
 | 
				
			||||||
	updatebarpos();
 | 
						updatebarpos();
 | 
				
			||||||
	lt->arrange();
 | 
						lt->arrange();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user