diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-29 18:34:11 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-29 18:34:11 +0200 |
| commit | 9276ade07b5e1ea1bb2c236d516901b4d2e3be9c (patch) | |
| tree | f2248a0d016c706ae10bd64efcd2238c5a83872e | |
| parent | c20e7d9efcbf67df72aae2040b6a06f861896362 (diff) | |
Wayland/X11 hybrid: fix crash of test program demo.
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 1 |
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); |
