mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	wl-shell: class instead of app_id
This commit is contained in:
		
							parent
							
								
									6a694853e5
								
							
						
					
					
						commit
						9afcfd44c4
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,7 @@ enum sway_view_type {
 | 
			
		|||
enum sway_view_prop {
 | 
			
		||||
	VIEW_PROP_TITLE,
 | 
			
		||||
	VIEW_PROP_APP_ID,
 | 
			
		||||
	VIEW_PROP_CLASS,
 | 
			
		||||
	VIEW_PROP_INSTANCE,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) {
 | 
			
		|||
	switch (prop) {
 | 
			
		||||
	case VIEW_PROP_TITLE:
 | 
			
		||||
		return view->wlr_wl_shell_surface->title;
 | 
			
		||||
	case VIEW_PROP_APP_ID:
 | 
			
		||||
	case VIEW_PROP_CLASS:
 | 
			
		||||
		return view->wlr_wl_shell_surface->class;
 | 
			
		||||
	default:
 | 
			
		||||
		return NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue