X11: fix rendering of overflowing last list items

This commit is contained in:
Přemysl Eric Janouch 2022-10-30 18:49:10 +01:00
parent da83dbee1f
commit 61fac878ad
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 3 deletions

View File

@ -6248,7 +6248,8 @@ static void
x11_render_list (struct widget *self) x11_render_list (struct widget *self)
{ {
// We could do that for all widgets, but it would be kind-of pointless. // We could do that for all widgets, but it would be kind-of pointless.
XRenderSetPictureClipRectangles (g.dpy, g.x11_pixmap_picture, 0, 0, // We need to go through Xft, or XftTextRenderUtf8() might skip glyphs.
XftDrawSetClipRectangles (g.xft_draw, 0, 0,
&(XRectangle) { self->x, self->y, self->width, self->height }, 1); &(XRectangle) { self->x, self->y, self->width, self->height }, 1);
x11_render_padding (self); x11_render_padding (self);
@ -6258,8 +6259,7 @@ x11_render_list (struct widget *self)
free (w); free (w);
} }
XRenderChangePicture (g.dpy, g.x11_pixmap_picture, CPClipMask, XftDrawSetClip (g.xft_draw, None);
&(XRenderPictureAttributes) { .clip_mask = None });
} }
static struct widget * static struct widget *