Create struct wl_callback_listener *Fl_Wayland_Graphics_Driver::p_surface_frame_listener

This commit is contained in:
ManoloFLTK
2024-01-18 08:51:31 +01:00
parent b7fba465ce
commit 01f2f760b6
4 changed files with 15 additions and 25 deletions
+3 -5
View File
@@ -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