mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xwm: check for a buffer before mapping
This commit is contained in:
		
							parent
							
								
									d086ee1b9e
								
							
						
					
					
						commit
						17230d33c1
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -885,7 +885,9 @@ static void read_surface_property(struct wlr_xwm *xwm,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void xwayland_surface_handle_commit(struct wl_listener *listener, void *data) {
 | 
					static void xwayland_surface_handle_commit(struct wl_listener *listener, void *data) {
 | 
				
			||||||
	struct wlr_xwayland_surface *xsurface = wl_container_of(listener, xsurface, surface_commit);
 | 
						struct wlr_xwayland_surface *xsurface = wl_container_of(listener, xsurface, surface_commit);
 | 
				
			||||||
	wlr_surface_map(xsurface->surface);
 | 
						if (wlr_surface_has_buffer(xsurface->surface)) {
 | 
				
			||||||
 | 
							wlr_surface_map(xsurface->surface);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void xwayland_surface_handle_map(struct wl_listener *listener, void *data) {
 | 
					static void xwayland_surface_handle_map(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue