mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Add assert to view_execute_criteria()
This commit is contained in:
		
							parent
							
								
									72767e1cc3
								
							
						
					
					
						commit
						30a7488936
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -212,6 +212,9 @@ static void view_handle_container_reparent(struct wl_listener *listener,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void view_execute_criteria(struct sway_view *view) {
 | 
					static void view_execute_criteria(struct sway_view *view) {
 | 
				
			||||||
 | 
						if (!sway_assert(view->swayc, "cannot run criteria for unmanaged view")) {
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	struct sway_seat *seat = input_manager_current_seat(input_manager);
 | 
						struct sway_seat *seat = input_manager_current_seat(input_manager);
 | 
				
			||||||
	struct sway_container *prior_workspace =
 | 
						struct sway_container *prior_workspace =
 | 
				
			||||||
		container_parent(view->swayc, C_WORKSPACE);
 | 
							container_parent(view->swayc, C_WORKSPACE);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue