mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	output: Add output_is_usable() helper
This commit is contained in:
		
							parent
							
								
									fe7edf82d9
								
							
						
					
					
						commit
						6efc6a9db4
					
				
					 5 changed files with 20 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -62,7 +62,7 @@ resistance_move_apply(struct view *view, double *x, double *y)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	wl_list_for_each(output, &server->outputs, link) {
 | 
			
		||||
		if (!output->wlr_output->enabled) {
 | 
			
		||||
		if (!output_is_usable(output)) {
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -132,7 +132,7 @@ resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo)
 | 
			
		|||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	wl_list_for_each(output, &server->outputs, link) {
 | 
			
		||||
		if (!output->wlr_output->enabled) {
 | 
			
		||||
		if (!output_is_usable(output)) {
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue