mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1808 from emersion/xwayland-unmapped-on-create
Do not call the map handler when an xwayland surface is created
This commit is contained in:
		
						commit
						a5735c08c7
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -113,8 +113,6 @@ static struct sway_xwayland_unmanaged *create_unmanaged(
 | 
			
		|||
	wl_signal_add(&xsurface->events.destroy, &surface->destroy);
 | 
			
		||||
	surface->destroy.notify = unmanaged_handle_destroy;
 | 
			
		||||
 | 
			
		||||
	unmanaged_handle_map(&surface->map, xsurface);
 | 
			
		||||
 | 
			
		||||
	return surface;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -305,6 +303,4 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
 | 
			
		|||
 | 
			
		||||
	wl_signal_add(&xsurface->events.map, &xwayland_view->map);
 | 
			
		||||
	xwayland_view->map.notify = handle_map;
 | 
			
		||||
 | 
			
		||||
	handle_map(&xwayland_view->map, xsurface);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue