From b2a38f793f5bd6876f611b256cff915e16c870d0 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 30 Dec 2022 09:40:58 +0100 Subject: Wayland+FreeBSD: fix "test/mandelbrot crashes on rightclick" (#618) --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index fd912b9a0..7faf503f7 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -339,7 +339,8 @@ void Fl_Wayland_Window_Driver::make_current() { } // to support progressive drawing - if ( (!Fl_Wayland_Window_Driver::in_flush) && window->buffer && (!window->buffer->cb)) { + if ( (!Fl_Wayland_Window_Driver::in_flush) && window->buffer && (!window->buffer->cb) && + !wait_for_expose_value ) { //fprintf(stderr, "direct make_current: new cb=%p\n", window->buffer->cb); Fl_Wayland_Graphics_Driver::buffer_commit(window); } -- cgit v1.2.3