From 031356069ae2b20df011d0e419efb7e17bda3db9 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 26 Jan 2019 18:00:29 +0000 Subject: [PATCH] new glx: Add glx_present Signed-off-by: Yuxuan Shui --- src/backend/gl/glx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index c867dbe..0337040 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -592,9 +592,16 @@ void glx_render_win(void *backend_data, session_t *ps, win *w, void *win_data, c 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 = { .init = glx_init, .deinit = glx_deinit, .prepare_win = glx_prepare_win, .render_win = glx_render_win, + .present = glx_present, + .is_win_transparent = default_is_win_transparent, + .is_frame_transparent = default_is_frame_transparent, };