summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-01-18 08:51:31 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-01-18 08:51:31 +0100
commit01f2f760b67a6b498ea7251c1bd2e26aaf7db034 (patch)
tree3c8d2a687a429ed8d7ebcc86d95c37927282934f /documentation
parentb7fba465cec78b00a46a47ebd3f8f231b5feb5ee (diff)
Create struct wl_callback_listener *Fl_Wayland_Graphics_Driver::p_surface_frame_listener
Diffstat (limited to 'documentation')
-rw-r--r--documentation/src/wayland.dox8
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