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

new glx: Add glx_present

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-01-26 18:00:29 +00:00
parent 4bc2870ddf
commit 031356069a
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

@ -592,9 +592,16 @@ void glx_render_win(void *backend_data, session_t *ps, win *w, void *win_data, c
gl_check_err(); gl_check_err();
} }
static void glx_present(void *backend_data, session_t *ps) {
glXSwapBuffers(ps->dpy, ps->overlay != XCB_NONE ? ps->overlay : ps->root);
}
backend_info_t glx_backend = { backend_info_t glx_backend = {
.init = glx_init, .init = glx_init,
.deinit = glx_deinit, .deinit = glx_deinit,
.prepare_win = glx_prepare_win, .prepare_win = glx_prepare_win,
.render_win = glx_render_win, .render_win = glx_render_win,
.present = glx_present,
.is_win_transparent = default_is_win_transparent,
.is_frame_transparent = default_is_frame_transparent,
}; };