From 01f2f760b67a6b498ea7251c1bd2e26aaf7db034 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:51:31 +0100 Subject: Create struct wl_callback_listener *Fl_Wayland_Graphics_Driver::p_surface_frame_listener --- documentation/src/wayland.dox | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'documentation') diff --git a/documentation/src/wayland.dox b/documentation/src/wayland.dox index a150ae555..9df242e08 100644 --- a/documentation/src/wayland.dox +++ b/documentation/src/wayland.dox @@ -609,11 +609,9 @@ If it's not NULL, the exact content of function \c surface_frame_done() : static void surface_frame_done(void *data, struct wl_callback *cb, uint32_t time) { struct wld_window *window = (struct wld_window *)data; wl_callback_destroy(cb); - if (window->buffer) { - window->frame_cb = NULL; - if (window->buffer->draw_buffer_needs_commit) { - Fl_Wayland_Graphics_Driver::buffer_commit(window); - } + window->frame_cb = NULL; + if (window->buffer && window->buffer->draw_buffer_needs_commit) { + Fl_Wayland_Graphics_Driver::buffer_commit(window); } } \endcode -- cgit v1.2.3