mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view.c: assign struct rather than using memcpy
Suggested-by: @xerpi
This commit is contained in:
		
							parent
							
								
									7bd2576138
								
							
						
					
					
						commit
						2b9c6a503c
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -76,10 +76,7 @@ view_center(struct view *view)
 | 
			
		|||
static struct wlr_box
 | 
			
		||||
usable_area_in_layout_coords(struct output *output)
 | 
			
		||||
{
 | 
			
		||||
	struct wlr_box box;
 | 
			
		||||
 | 
			
		||||
	memcpy(&box, &output->usable_area, sizeof(struct wlr_box));
 | 
			
		||||
 | 
			
		||||
	struct wlr_box box = output->usable_area;
 | 
			
		||||
	double ox = 0, oy = 0;
 | 
			
		||||
	wlr_output_layout_output_coords(output->server->output_layout,
 | 
			
		||||
		output->wlr_output, &ox, &oy);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue