mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	window-rules: implement type filter
Co-Authored-By: Grigory Kirillov <txgk@bk.ru>
This commit is contained in:
		
							parent
							
								
									9be18f3009
								
							
						
					
					
						commit
						858e1c65cf
					
				
					 9 changed files with 157 additions and 79 deletions
				
			
		
							
								
								
									
										10
									
								
								src/view.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/view.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -211,6 +211,16 @@ view_wants_focus(struct view *view)
 | 
			
		|||
	return VIEW_WANTS_FOCUS_ALWAYS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool
 | 
			
		||||
view_contains_window_type(struct view *view, enum window_type window_type)
 | 
			
		||||
{
 | 
			
		||||
	assert(view);
 | 
			
		||||
	if (view->impl->contains_window_type) {
 | 
			
		||||
		return view->impl->contains_window_type(view, window_type);
 | 
			
		||||
	}
 | 
			
		||||
	return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool
 | 
			
		||||
view_is_focusable(struct view *view)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue