mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #779 from thejan2009/smart-gaps-outer
Hide outer gaps too when smart_gaps is on
This commit is contained in:
		
						commit
						643bd8f158
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -755,6 +755,8 @@ int swayc_gap(swayc_t *container) {
 | 
			
		|||
			// size to make the outermost gap the same size (excluding the
 | 
			
		||||
			// actual "outer gap" size which is handled independently)
 | 
			
		||||
			return base + config->gaps_inner / 2;
 | 
			
		||||
		} else if (config->smart_gaps && container->children->length == 1) {
 | 
			
		||||
			return 0;
 | 
			
		||||
		} else {
 | 
			
		||||
			return base;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue