Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)

This commit is contained in:
ManoloFLTK 2024-05-05 11:06:15 +02:00
parent b726211b9b
commit dea8a93bc2

View File

@ -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;