mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #937 from alkino/fix_scale_factor
Add constant scale factor in get_text_size
This commit is contained in:
		
						commit
						7d823fbcae
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b,
 | 
				
			||||||
	// text
 | 
						// text
 | 
				
			||||||
	if (view->name) {
 | 
						if (view->name) {
 | 
				
			||||||
		int width, height;
 | 
							int width, height;
 | 
				
			||||||
		get_text_size(cr, config->font, &width, &height, false, "%s", view->name);
 | 
							get_text_size(cr, config->font, &width, &height, 1, false, "%s", view->name);
 | 
				
			||||||
		cairo_move_to(cr, x + 2, y + 2);
 | 
							cairo_move_to(cr, x + 2, y + 2);
 | 
				
			||||||
		cairo_set_source_u32(cr, colors->text);
 | 
							cairo_set_source_u32(cr, colors->text);
 | 
				
			||||||
		pango_printf(cr, config->font, 1, false, "%s", view->name);
 | 
							pango_printf(cr, config->font, 1, false, "%s", view->name);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue