diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 3630ab06e..52c5fd7eb 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -399,7 +399,11 @@ void Fl_Wayland_Window_Driver::flush() { Fl_Wayland_Window_Driver::in_flush_ = true; Fl_Window_Driver::flush(); Fl_Wayland_Window_Driver::in_flush_ = false; - if (window->buffer->cb) wl_callback_destroy(window->buffer->cb); + if (window->buffer->cb) { + wl_callback_destroy(window->buffer->cb); + window->buffer->cb = NULL; + r = NULL; + } Fl_Wayland_Graphics_Driver::buffer_commit(window, r); } |
