mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1309 from 4e554c4c/racey_kills
Prevent race condition in the kill command
This commit is contained in:
		
						commit
						e12d1cf003
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -849,7 +849,6 @@ int swayc_gap(swayc_t *container) {
 | 
			
		|||
 | 
			
		||||
void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), void *data) {
 | 
			
		||||
	if (container) {
 | 
			
		||||
		f(container, data);
 | 
			
		||||
		int i;
 | 
			
		||||
		if (container->children)  {
 | 
			
		||||
			for (i = 0; i < container->children->length; ++i) {
 | 
			
		||||
| 
						 | 
				
			
			@ -863,6 +862,7 @@ void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), voi
 | 
			
		|||
				container_map(child, f, data);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		f(container, data);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue