src/ssd: un-round corners on maximize

This commit is contained in:
Consolatis 2023-08-23 04:42:30 +02:00
parent 10f22a8f5b
commit f42f5f41c5
3 changed files with 39 additions and 2 deletions

View file

@ -152,7 +152,7 @@ add_scene_button(struct wl_list *part_list, enum ssd_part_type type,
wlr_scene_node_set_position(button_root->node, x, 0);
/* Background */
add_scene_rect(part_list, type, parent,
struct ssd_part *bg_rect = add_scene_rect(part_list, type, parent,
SSD_BUTTON_WIDTH, rc.theme->title_height, 0, 0, bg_color);
/* Icon */
@ -175,6 +175,7 @@ add_scene_button(struct wl_list *part_list, enum ssd_part_type type,
button->type = type;
button->view = view;
button->hover = hover;
button->background = bg_rect->node;
return button_root;
}