mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xdg: Fix visual glitch when resizing xfce4-terminal from left edge
This commit is contained in:
		
							parent
							
								
									0b34b9f69f
								
							
						
					
					
						commit
						31ec8f050c
					
				
					 1 changed files with 10 additions and 3 deletions
				
			
		
							
								
								
									
										13
									
								
								src/xdg.c
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/xdg.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -233,9 +233,16 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
 | 
			
		|||
	if (serial > 0) {
 | 
			
		||||
		view->pending_configure_serial = serial;
 | 
			
		||||
	} else if (view->pending_configure_serial == 0) {
 | 
			
		||||
		view->current.x = geo.x;
 | 
			
		||||
		view->current.y = geo.y;
 | 
			
		||||
		view_moved(view);
 | 
			
		||||
		/*
 | 
			
		||||
		 * We can't assume here that view->current is equal to
 | 
			
		||||
		 * view->pending because some clients (e.g. terminals)
 | 
			
		||||
		 * refuse to accept the exact size we requested. To
 | 
			
		||||
		 * account for the size difference and avoid visual
 | 
			
		||||
		 * glitches during resize, we apply the same position
 | 
			
		||||
		 * adjustments here as in handle_commit().
 | 
			
		||||
		 */
 | 
			
		||||
		view_impl_apply_geometry(view, view->current.width,
 | 
			
		||||
			view->current.height);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue