mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	view: update_size should only update pending size
Updating the current size outside transactions lead to rendering glitches during resizes.
This commit is contained in:
		
							parent
							
								
									fcd0ab8f33
								
							
						
					
					
						commit
						4edd429053
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -730,8 +730,6 @@ void view_update_size(struct sway_view *view, int width, int height) {
 | 
				
			||||||
	if (container_is_floating(con)) {
 | 
						if (container_is_floating(con)) {
 | 
				
			||||||
		con->content_width = width;
 | 
							con->content_width = width;
 | 
				
			||||||
		con->content_height = height;
 | 
							con->content_height = height;
 | 
				
			||||||
		con->current.content_width = width;
 | 
					 | 
				
			||||||
		con->current.content_height = height;
 | 
					 | 
				
			||||||
		container_set_geometry_from_content(con);
 | 
							container_set_geometry_from_content(con);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		con->surface_x = con->content_x + (con->content_width - width) / 2;
 | 
							con->surface_x = con->content_x + (con->content_width - width) / 2;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue