From 9276ade07b5e1ea1bb2c236d516901b4d2e3be9c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:34:11 +0200 Subject: Wayland/X11 hybrid: fix crash of test program demo. --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 821bdd56a..cd512350b 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -619,6 +619,7 @@ int Fl_Wayland_Screen_Driver::compose(int& del) { void Fl_Wayland_Screen_Driver::compose_reset() { + if (!Fl_Wayland_Screen_Driver::wl_registry) open_display(); Fl::compose_state = 0; next_marked_length = 0; xkb_compose_state_reset(seat->xkb_compose_state); -- cgit v1.2.3