From dea8a93bc2dc359bbcfd33889592660ee0089075 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 5 May 2024 11:06:15 +0200 Subject: [PATCH] Wayland: use frame_cb before redrawing GL subwins - cont'd (#967) --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index e1b5b0b7a..fd7766c6a 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -495,6 +495,7 @@ void Fl_Wayland_Window_Driver::hide() { if (Fl_Wayland_Window_Driver::wld_window == wld_win) { Fl_Wayland_Window_Driver::wld_window = NULL; } + if (wld_win->frame_cb) wl_callback_destroy(wld_win->frame_cb); // useful for GL subwins free(wld_win); } delete ip;