summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-06 16:50:58 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-06 16:50:58 +0200
commit149673863d0e3aeddfe5c87e4e6c2ac9862954e1 (patch)
treed758ae8362e990d838b46b2c82d6a48d6a709042 /src/drivers/Wayland
parent33ea30432f528a80d4e787a6f23a4096ead69154 (diff)
Wayland: fix regression from 50d26b0 in test/mandelbrot.
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 2a2b59a9d..a95029ee7 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -362,6 +362,7 @@ void Fl_Wayland_Window_Driver::make_current() {
// to support progressive drawing
if ( (!Fl_Wayland_Window_Driver::in_flush) && window && window->buffer && (!window->buffer->cb)) {
wl_surface_damage_buffer(window->wl_surface, 0, 0, pWindow->w() * scale, pWindow->h() * scale);
+ window->buffer->draw_buffer_needs_commit = true;
window->buffer->cb = wl_surface_frame(window->wl_surface);
//fprintf(stderr, "direct make_current: new cb=%p\n", window->buffer->cb);
wl_callback_add_listener(window->buffer->cb, &surface_frame_listener, window);