mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xwayland-unmanaged: Fix set_geometry using container_of of wrong member
Fixes a segfault with starting Steam.
This commit is contained in:
		
							parent
							
								
									2a14e8271b
								
							
						
					
					
						commit
						538fa1f244
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -27,7 +27,7 @@ unmanaged_handle_set_geometry(struct wl_listener *listener, void *data)
 | 
			
		|||
{
 | 
			
		||||
	wlr_log(WLR_INFO, "handling set_geometry");
 | 
			
		||||
	struct xwayland_unmanaged *unmanaged =
 | 
			
		||||
		wl_container_of(listener, unmanaged, commit);
 | 
			
		||||
		wl_container_of(listener, unmanaged, set_geometry);
 | 
			
		||||
	struct wlr_xwayland_surface *xsurface = unmanaged->xwayland_surface;
 | 
			
		||||
 | 
			
		||||
	if (xsurface->x != unmanaged->lx || xsurface->y != unmanaged->ly) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue