actually use the result of calculate_width()
This commit is contained in:
parent
4ef3cf96ff
commit
06b056eea2
2
x.c
2
x.c
@ -201,7 +201,7 @@ static colored_layout *r_init_shared(cairo_t *c, notification *n)
|
||||
|
||||
int width = calculate_width();
|
||||
if (xctx.geometry.w > 0) {
|
||||
width = xctx.geometry.w - 2 * settings.h_padding;
|
||||
width -= 2 * settings.h_padding;
|
||||
width -= 2 * settings.frame_width;
|
||||
r_setup_pango_layout(cl->l, width);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user