Text widths do not depend on the size of the underlying cairo_surface, so instead of rendering and submitting a buffer twice, one can just use a 1x1 dummy surface (This trick is also used by swaylock.)
Text widths do not depend on the size of the underlying cairo_surface, so instead of rendering and submitting a buffer twice, one can just use a 1x1 dummy surface (This trick is also used by swaylock.)