mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	view: do not crash on missing output
We should survive all outputs being disabled
This commit is contained in:
		
							parent
							
								
									b94f3b1af0
								
							
						
					
					
						commit
						76a85ae87d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -141,7 +141,9 @@ static bool | |||
| view_compute_centered_position(struct view *view, int w, int h, int *x, int *y) | ||||
| { | ||||
| 	struct output *output = view_output(view); | ||||
| 	assert(output); | ||||
| 	if (!output) { | ||||
| 		return false; | ||||
| 	} | ||||
| 	struct wlr_output *wlr_output = output->wlr_output; | ||||
| 	if (!wlr_output) { | ||||
| 		return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Johan Malm
						Johan Malm