mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	ssd: refactor in preparation for making ssd_visible_box() private
Prepare to move code from output/render functions to ssd. We want rendering functions to just render, not calculate decoration geometry and such like.
This commit is contained in:
		
							parent
							
								
									5f01c49b72
								
							
						
					
					
						commit
						8c96c65018
					
				
					 5 changed files with 9 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,7 @@ handle_commit(struct wl_listener *listener, void *data)
 | 
			
		|||
			view->pending_move_resize.height - view->h;
 | 
			
		||||
		view->pending_move_resize.update_y = false;
 | 
			
		||||
	}
 | 
			
		||||
	ssd_update_geometry(view);
 | 
			
		||||
	ssd_update_geometry(view, false);
 | 
			
		||||
	damage_view_whole(view);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -107,7 +107,7 @@ move(struct view *view, double x, double y)
 | 
			
		|||
	struct wlr_xwayland_surface *s = view->xwayland_surface;
 | 
			
		||||
	wlr_xwayland_surface_configure(s, (int16_t)x, (int16_t)y,
 | 
			
		||||
		(uint16_t)s->width, (uint16_t)s->height);
 | 
			
		||||
	ssd_update_geometry(view);
 | 
			
		||||
	ssd_update_geometry(view, false);
 | 
			
		||||
	damage_all_outputs(view->server);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue