diff options
Diffstat (limited to 'documentation/src/wayland.dox')
| -rw-r--r-- | documentation/src/wayland.dox | 8 |
1 files changed, 3 insertions, 5 deletions
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 |
