summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-09-24 09:52:48 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-09-24 09:52:48 +0200
commit59b251cc39bc5735bbd33ab4fbf41dab03efef21 (patch)
tree739681c40561c612a5e79001f48ceae6c3658752 /src
parentc02ecbcae20e4d86299a8e445ed116bf16924249 (diff)
Slightly simpler Fl_Wayland_Window_Driver::flush()
and beef up description of Wayland's mechanism to throttle screen redrawing.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx7
1 files changed, 1 insertions, 6 deletions
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);
}