mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	criteria match containers
This commit is contained in:
		
							parent
							
								
									46280460a5
								
							
						
					
					
						commit
						70b33342fe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -273,7 +273,7 @@ static int regex_cmp(const char *item, const pcre *regex) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// test a single view if it matches list of criteria tokens (all of them).
 | 
					// test a single view if it matches list of criteria tokens (all of them).
 | 
				
			||||||
static bool criteria_test(struct sway_container *cont, list_t *tokens) {
 | 
					static bool criteria_test(struct sway_container *cont, list_t *tokens) {
 | 
				
			||||||
	if (cont->type != C_VIEW) {
 | 
						if (cont->type < C_CONTAINER) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	int matches = 0;
 | 
						int matches = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue