mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	osd-classic: fix miscalculation for osd width in percentage
Fixes a regression in 75eb370.
			
			
This commit is contained in:
		
							parent
							
								
									24b9bd93fb
								
							
						
					
					
						commit
						2d7e87ea75
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -86,7 +86,8 @@ osd_classic_create(struct output *output, struct wl_array *views)
 | 
			
		|||
 | 
			
		||||
	int w = switcher_theme->width;
 | 
			
		||||
	if (switcher_theme->width_is_percent) {
 | 
			
		||||
		w = output->wlr_output->width * switcher_theme->width / 100;
 | 
			
		||||
		w = output->wlr_output->width / output->wlr_output->scale
 | 
			
		||||
			* switcher_theme->width / 100;
 | 
			
		||||
	}
 | 
			
		||||
	int h = wl_array_len(views) * switcher_theme->item_height
 | 
			
		||||
		+ 2 * rc.theme->osd_border_width + 2 * switcher_theme->padding;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue