mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	fix resizing at top/left border
This commit is contained in:
		
							parent
							
								
									dc3f817538
								
							
						
					
					
						commit
						b6761dc294
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1093,6 +1093,8 @@ handle_configure(void *data, struct wl_shell *shell,
 | 
				
			||||||
	if(width <= 0 || height <= 0)
 | 
						if(width <= 0 || height <= 0)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						window->resize_edges = edges;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (window->resize_handler) {
 | 
						if (window->resize_handler) {
 | 
				
			||||||
		child_width = width - 20 - window->margin * 2;
 | 
							child_width = width - 20 - window->margin * 2;
 | 
				
			||||||
		child_height = height - 60 - window->margin * 2;
 | 
							child_height = height - 60 - window->margin * 2;
 | 
				
			||||||
| 
						 | 
					@ -1101,7 +1103,6 @@ handle_configure(void *data, struct wl_shell *shell,
 | 
				
			||||||
					  child_width, child_height,
 | 
										  child_width, child_height,
 | 
				
			||||||
					  window->user_data);
 | 
										  window->user_data);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		window->resize_edges = edges;
 | 
					 | 
				
			||||||
		window->allocation.width = width;
 | 
							window->allocation.width = width;
 | 
				
			||||||
		window->allocation.height = height;
 | 
							window->allocation.height = height;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue