mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_scene: Set wlr_damage_ring_set_bounds earlier
				
					
				
			Fixes the _HIGHLIGHT option not highlighting the buffer correctly after a resize
This commit is contained in:
		
							parent
							
								
									1dc44a1afe
								
							
						
					
					
						commit
						41fd552f53
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1766,6 +1766,9 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
 | 
				
			||||||
	struct render_list_entry *list_data = list_con.render_list->data;
 | 
						struct render_list_entry *list_data = list_con.render_list->data;
 | 
				
			||||||
	int list_len = list_con.render_list->size / sizeof(*list_data);
 | 
						int list_len = list_con.render_list->size / sizeof(*list_data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wlr_damage_ring_set_bounds(&scene_output->damage_ring,
 | 
				
			||||||
 | 
							render_data.trans_width, render_data.trans_height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_RERENDER) {
 | 
						if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_RERENDER) {
 | 
				
			||||||
		wlr_damage_ring_add_whole(&scene_output->damage_ring);
 | 
							wlr_damage_ring_add_whole(&scene_output->damage_ring);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -1830,9 +1833,6 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_damage_ring_set_bounds(&scene_output->damage_ring,
 | 
					 | 
				
			||||||
		render_data.trans_width, render_data.trans_height);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct wlr_swapchain *swapchain = options->swapchain;
 | 
						struct wlr_swapchain *swapchain = options->swapchain;
 | 
				
			||||||
	if (!swapchain) {
 | 
						if (!swapchain) {
 | 
				
			||||||
		if (!wlr_output_configure_primary_swapchain(output, state, &output->swapchain)) {
 | 
							if (!wlr_output_configure_primary_swapchain(output, state, &output->swapchain)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue