mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fixes #321, not using result of wl_container_of
This commit is contained in:
		
							parent
							
								
									f0add2f8a9
								
							
						
					
					
						commit
						a299b9d875
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -414,8 +414,8 @@ static void output_add_notify(struct wl_listener *listener, void *data) {
 | 
			
		|||
	wlr_log(L_DEBUG, "%s %s %"PRId32"mm x %"PRId32"mm", output->make, output->model,
 | 
			
		||||
		output->phys_width, output->phys_height);
 | 
			
		||||
	if (wl_list_length(&output->modes) > 0) {
 | 
			
		||||
		struct wlr_output_mode *mode = NULL;
 | 
			
		||||
		wl_container_of((&output->modes)->prev, mode, link);
 | 
			
		||||
		struct wlr_output_mode *mode;
 | 
			
		||||
		mode = wl_container_of((&output->modes)->prev, mode, link);
 | 
			
		||||
		wlr_output_set_mode(output, mode);
 | 
			
		||||
	}
 | 
			
		||||
	struct output_state *ostate = calloc(1, sizeof(struct output_state));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue