mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Fix crash when long window titles are used
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>
This commit is contained in:
parent
02b412a3d4
commit
a2763262d4
3 changed files with 38 additions and 2 deletions
|
|
@ -20,5 +20,7 @@ void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
|
|||
void get_text_metrics(const char *font, int *height, int *baseline);
|
||||
void render_text(cairo_t *cairo, const char *font,
|
||||
double scale, bool markup, const char *fmt, ...);
|
||||
void render_text_ellipsize(cairo_t *cairo, const char *font, double scale,
|
||||
bool markup, double width, const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue