mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Sanity check gaps between tiled containers
When the gaps become too large for the space available gracefully reduced them all the way to 0 if needed. Fixes #4294
This commit is contained in:
		
							parent
							
								
									d0233af3b3
								
							
						
					
					
						commit
						44c2fafa4f
					
				
					 3 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -15,8 +15,6 @@
 | 
			
		|||
#define AXIS_HORIZONTAL (WLR_EDGE_LEFT | WLR_EDGE_RIGHT)
 | 
			
		||||
#define AXIS_VERTICAL   (WLR_EDGE_TOP | WLR_EDGE_BOTTOM)
 | 
			
		||||
 | 
			
		||||
static const int MIN_SANE_W = 100, MIN_SANE_H = 60;
 | 
			
		||||
 | 
			
		||||
enum resize_unit {
 | 
			
		||||
	RESIZE_UNIT_PX,
 | 
			
		||||
	RESIZE_UNIT_PPT,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue