Skip to content

Commit

Permalink
sway_text_node: Remove duplicate update_source_box call
Browse files Browse the repository at this point in the history
render_backing_buffer will call update_source_box, no need to do it
twice.
  • Loading branch information
kennylevinsen committed Feb 25, 2025
1 parent 06fe282 commit 92dcb97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sway/sway_text_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ void sway_text_node_set_max_width(struct sway_text_node *node, int max_width) {
buffer->props.max_width = max_width;
wlr_scene_buffer_set_dest_size(buffer->buffer_node,
get_text_width(&buffer->props), buffer->props.height);
update_source_box(buffer);
render_backing_buffer(buffer);
}

Expand Down

0 comments on commit 92dcb97

Please sign in to comment.