mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)
This commit is contained in:
@@ -495,6 +495,7 @@ void Fl_Wayland_Window_Driver::hide() {
|
|||||||
if (Fl_Wayland_Window_Driver::wld_window == wld_win) {
|
if (Fl_Wayland_Window_Driver::wld_window == wld_win) {
|
||||||
Fl_Wayland_Window_Driver::wld_window = NULL;
|
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);
|
free(wld_win);
|
||||||
}
|
}
|
||||||
delete ip;
|
delete ip;
|
||||||
|
|||||||
Reference in New Issue
Block a user