mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Consider view's min/max sizes when resizing
This commit is contained in:
		
							parent
							
								
									9df660ee31
								
							
						
					
					
						commit
						011d1ebfa4
					
				
					 5 changed files with 52 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,8 @@ enum sway_view_prop {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct sway_view_impl {
 | 
			
		||||
	void (*get_constraints)(struct sway_view *view, double *min_width,
 | 
			
		||||
			double *max_width, double *min_height, double *max_height);
 | 
			
		||||
	const char *(*get_string_prop)(struct sway_view *view,
 | 
			
		||||
			enum sway_view_prop prop);
 | 
			
		||||
	uint32_t (*get_int_prop)(struct sway_view *view, enum sway_view_prop prop);
 | 
			
		||||
| 
						 | 
				
			
			@ -215,6 +217,9 @@ uint32_t view_get_window_type(struct sway_view *view);
 | 
			
		|||
 | 
			
		||||
const char *view_get_shell(struct sway_view *view);
 | 
			
		||||
 | 
			
		||||
void view_get_constraints(struct sway_view *view, double *min_width,
 | 
			
		||||
		double *max_width, double *min_height, double *max_height);
 | 
			
		||||
 | 
			
		||||
uint32_t view_configure(struct sway_view *view, double lx, double ly, int width,
 | 
			
		||||
	int height);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue