summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-29 18:34:11 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-29 18:34:11 +0200
commit9276ade07b5e1ea1bb2c236d516901b4d2e3be9c (patch)
treef2248a0d016c706ae10bd64efcd2238c5a83872e /src
parentc20e7d9efcbf67df72aae2040b6a06f861896362 (diff)
Wayland/X11 hybrid: fix crash of test program demo.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
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);