mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
Create struct wl_callback_listener *Fl_Wayland_Graphics_Driver::p_surface_frame_listener
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user