Wayland+GLUT: fix crash in glut_test application
This commit is contained in:
parent
a20bace4e1
commit
04cf2c4c7d
@ -1279,7 +1279,8 @@ static const struct wl_callback_listener sync_listener = {
|
||||
|
||||
|
||||
static void do_atexit() {
|
||||
if (Fl_Wayland_Screen_Driver::wl_display) {
|
||||
if (Fl_Wayland_Screen_Driver::wl_display &&
|
||||
(!Fl::first_window() || !Fl::first_window()->as_gl_window())) {
|
||||
wl_display_roundtrip(Fl_Wayland_Screen_Driver::wl_display);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user