mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-31 20:14:20 +00:00 
			
		
		
		
	follow upstream xwayland_surface changes
wlroots removed the `wlr_surface_is_xwayland_surface` function, and renamed `wlr_xwayland_surface_from_wlr_surface` to `wlr_xwayland_surface_try_from_wlr_surface`.
related commit: fbf5982e38
			
			
This commit is contained in:
		
							parent
							
								
									cf9c5745e5
								
							
						
					
					
						commit
						7fb980a525
					
				
							
								
								
									
										6
									
								
								client.h
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								client.h
									
									
									
									
									
								
							| @ -69,8 +69,7 @@ toplevel_from_wlr_surface(struct wlr_surface *s, Client **pc, LayerSurface **pl) | |||||||
| 	root_surface = wlr_surface_get_root_surface(s); | 	root_surface = wlr_surface_get_root_surface(s); | ||||||
| 
 | 
 | ||||||
| #ifdef XWAYLAND | #ifdef XWAYLAND | ||||||
| 	if (wlr_surface_is_xwayland_surface(root_surface) | 	if ((xsurface = wlr_xwayland_surface_try_from_wlr_surface(root_surface))) { | ||||||
| 			&& (xsurface = wlr_xwayland_surface_from_wlr_surface(root_surface))) { |  | ||||||
| 		c = xsurface->data; | 		c = xsurface->data; | ||||||
| 		type = c->type; | 		type = c->type; | ||||||
| 		goto end; | 		goto end; | ||||||
| @ -121,8 +120,7 @@ client_activate_surface(struct wlr_surface *s, int activated) | |||||||
| 	struct wlr_xdg_surface *surface; | 	struct wlr_xdg_surface *surface; | ||||||
| #ifdef XWAYLAND | #ifdef XWAYLAND | ||||||
| 	struct wlr_xwayland_surface *xsurface; | 	struct wlr_xwayland_surface *xsurface; | ||||||
| 	if (wlr_surface_is_xwayland_surface(s) | 	if ((xsurface = wlr_xwayland_surface_try_from_wlr_surface(s))) { | ||||||
| 			&& (xsurface = wlr_xwayland_surface_from_wlr_surface(s))) { |  | ||||||
| 		wlr_xwayland_surface_activate(xsurface, activated); | 		wlr_xwayland_surface_activate(xsurface, activated); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Job79
						Job79