sway_text_node: allow max width to be fractional

Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
Loukas Agorgianitis 2025-06-01 17:44:48 +03:00
parent 488673cb8d
commit 57d597d32d
No known key found for this signature in database
GPG key ID: DDC6FA7D5BB332E6
2 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@
struct sway_text_node {
int width;
int max_width;
double max_width;
int height;
int baseline;
bool pango_markup;
@ -21,7 +21,7 @@ void sway_text_node_set_color(struct sway_text_node *node, float color[4]);
void sway_text_node_set_text(struct sway_text_node *node, char *text);
void sway_text_node_set_max_width(struct sway_text_node *node, int max_width);
void sway_text_node_set_max_width(struct sway_text_node *node, double max_width);
void sway_text_node_set_background(struct sway_text_node *node, float background[4]);