From 59b251cc39bc5735bbd33ab4fbf41dab03efef21 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:52:48 +0200 Subject: Slightly simpler Fl_Wayland_Window_Driver::flush() and beef up description of Wayland's mechanism to throttle screen redrawing. --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index f5b43c962..b149cbe0b 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -399,12 +399,7 @@ 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); - window->buffer->cb = NULL; - r = NULL; - } - Fl_Wayland_Graphics_Driver::buffer_commit(window, r); + if (!window->buffer->cb) Fl_Wayland_Graphics_Driver::buffer_commit(window, r); } -- cgit v1.2.3