diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-12 21:17:42 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-12 21:17:42 +0100 |
| commit | 04cf2c4c7d2be58333c5c2add9f402c9e58022ec (patch) | |
| tree | 5b6de4225c28c06ee069fdad5080bcfd353a0a83 /src | |
| parent | a20bace4e101d6e54bb190fa1ac55a8483f152e7 (diff) | |
Wayland+GLUT: fix crash in glut_test application
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index cd98d23a0..9dda9e460 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -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); } } |
