cairo_image_surface_create() return CAIRO_STATUS_INVALID_SIZE on too
long window titles and creates then no surface. Therefore it makes
sense to limit the window title length to a reasonable length.
Fix: https://github.com/swaywm/sway/issues/6531
Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>