diff options
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 438ff157..bec17d95 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -1623,6 +1623,10 @@ static void update_marks_texture(struct sway_container *con, | |||
1623 | "%s", buffer); | 1623 | "%s", buffer); |
1624 | cairo_destroy(c); | 1624 | cairo_destroy(c); |
1625 | 1625 | ||
1626 | if (width == 0 || height == 0) { | ||
1627 | return; | ||
1628 | } | ||
1629 | |||
1626 | cairo_surface_t *surface = cairo_image_surface_create( | 1630 | cairo_surface_t *surface = cairo_image_surface_create( |
1627 | CAIRO_FORMAT_ARGB32, width, height); | 1631 | CAIRO_FORMAT_ARGB32, width, height); |
1628 | cairo_t *cairo = cairo_create(surface); | 1632 | cairo_t *cairo = cairo_create(surface); |