mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	Fix layer old damage not being offset by the monitor layout coords
This commit is contained in:
		
							parent
							
								
									01b0c11394
								
							
						
					
					
						commit
						48d6eda3cb
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -312,6 +312,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { | |||
| 	bool extent_changed = | ||||
| 		memcmp(&old_extent, &layer->extent, sizeof(struct wlr_box)) != 0; | ||||
| 	if (extent_changed || layer_changed) { | ||||
| 		old_extent.x += output->lx; | ||||
| 		old_extent.y += output->ly; | ||||
| 		output_damage_box(output, &old_extent); | ||||
| 		output_damage_surface(output, layer->geo.x, layer->geo.y, | ||||
| 			layer_surface->surface, true); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Erik Reider
						Erik Reider