mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	HiDPI: fix osd placement and maximized scale
This commit is contained in:
		
							parent
							
								
									6698ca7300
								
							
						
					
					
						commit
						ed3d0cd523
					
				
					 2 changed files with 15 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -139,6 +139,12 @@ view_maximize(struct view *view, bool maximize)
 | 
			
		|||
 | 
			
		||||
		struct output *output = view_output(view);
 | 
			
		||||
		struct wlr_box box = output_usable_area_in_layout_coords(output);
 | 
			
		||||
		if (box.height == output->wlr_output->height && output->wlr_output->scale != 1) {
 | 
			
		||||
			box.height /= output->wlr_output->scale;
 | 
			
		||||
		}
 | 
			
		||||
		if (box.width == output->wlr_output->width && output->wlr_output->scale != 1) {
 | 
			
		||||
			box.width /= output->wlr_output->scale;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (view->ssd.enabled) {
 | 
			
		||||
			struct border border = ssd_thickness(view);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue