mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xdg: don't always adjust the window size before configure
This fixes the small flicker when the client initially submits a window size smaller than the minimum value.
This commit is contained in:
		
							parent
							
								
									25f5cdd3a6
								
							
						
					
					
						commit
						31fec2f9cb
					
				
					 1 changed files with 0 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -396,15 +396,6 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
 | 
			
		|||
{
 | 
			
		||||
	uint32_t serial = 0;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Leave a size of 0x0 unchanged; this has special meaning in
 | 
			
		||||
	 * an xdg-toplevel configure event and requests the application
 | 
			
		||||
	 * to choose its own preferred size.
 | 
			
		||||
	 */
 | 
			
		||||
	if (!wlr_box_empty(&geo)) {
 | 
			
		||||
		view_adjust_size(view, &geo.width, &geo.height);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * We do not need to send a configure request unless the size
 | 
			
		||||
	 * changed (wayland has no notion of a global position). If the
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue