1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Add several debug prints

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-03-17 01:02:57 +00:00
parent 312643c454
commit 838a214749
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47
2 changed files with 4 additions and 0 deletions

View file

@ -353,6 +353,7 @@ glx_bind_pixmap(backend_t *base, xcb_pixmap_t pixmap, struct xvisual_info fmt, b
return NULL;
}
log_trace("Binding pixmap %#010x", pixmap);
auto wd = ccalloc(1, struct _glx_image_data);
wd->pixmap = pixmap;
wd->texture.width = wd->texture.ewidth = r->width;
@ -394,6 +395,8 @@ glx_bind_pixmap(backend_t *base, xcb_pixmap_t pixmap, struct xvisual_info fmt, b
goto err;
}
log_trace("GLXPixmap %#010lx", wd->glpixmap);
// Create texture
wd->texture.texture = gl_new_texture(GL_TEXTURE_2D);
wd->texture.opacity = 1;

View file

@ -200,6 +200,7 @@ _win_bind_image(session_t *ps, win *w, void **win_image, void **shadow_image) {
free(e);
return false;
}
log_trace("New named pixmap %#010x", pixmap);
*win_image = ps->backend_data->ops->bind_pixmap(
ps->backend_data, pixmap, x_get_visual_info(ps->c, w->a.visual), true);
if (!*win_image) {