x_get_pictform_for_visual should return const *

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-07 00:18:47 +00:00
parent aa9c439cc6
commit 7d00b89364
4 changed files with 12 additions and 11 deletions

View File

@ -998,7 +998,7 @@ void paint_all(session_t *ps, win *const t, bool ignore_damage) {
// First we create a new picture, and copy content from the buffer
// to it
xcb_render_pictforminfo_t *pictfmt =
auto pictfmt =
x_get_pictform_for_visual(ps->c, ps->vis);
xcb_render_picture_t new_pict = x_create_picture_with_pictfmt(
ps, ps->root_width, ps->root_height, pictfmt, 0, NULL);