mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	sway views: add helpers to get view and layer from wlr_surface
This commit is contained in:
		
							parent
							
								
									d8c61c9763
								
							
						
					
					
						commit
						9ea4cc13a0
					
				
					 8 changed files with 73 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -260,6 +260,16 @@ void view_child_init(struct sway_view_child *child,
 | 
			
		|||
 | 
			
		||||
void view_child_destroy(struct sway_view_child *child);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
struct sway_view *view_from_wlr_xdg_surface(
 | 
			
		||||
	struct wlr_xdg_surface *xdg_surface);
 | 
			
		||||
struct sway_view *view_from_wlr_xdg_surface_v6(
 | 
			
		||||
	struct wlr_xdg_surface_v6 *xdg_surface_v6);
 | 
			
		||||
struct sway_view *view_from_wlr_xwayland_surface(
 | 
			
		||||
	struct wlr_xwayland_surface *xsurface);
 | 
			
		||||
 | 
			
		||||
struct sway_view *view_from_wlr_surface(struct wlr_surface *surface);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Re-read the view's title property and update any relevant title bars.
 | 
			
		||||
 * The force argument makes it recreate the title bars even if the title hasn't
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue