ssd: respect logical size when displaying window icon

get_scale_box() was using the raw pixel size of the icon buffer for
layout, which caused the icon to be incorrectly scaled up if the buffer
scale was >1.
This commit is contained in:
John Lindgren 2024-10-06 21:29:40 -04:00
parent ddfaae98ad
commit 465aac5514
3 changed files with 9 additions and 9 deletions

View file

@ -149,7 +149,7 @@ struct ssd_part *add_scene_button(struct wl_list *part_list,
struct lab_data_buffer *buffers[LAB_BS_ALL + 1], int x,
struct view *view);
void update_window_icon_buffer(struct wlr_scene_node *button_node,
struct wlr_buffer *buffer);
struct lab_data_buffer *buffer);
/* SSD internal helpers */
struct ssd_part *ssd_get_part(