|
|
commit 9276ade07b5e1ea1bb2c236d516901b4d2e3be9c
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Aug 29 18:34:11 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Aug 29 18:34:11 2022 +0200
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 src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index 821bdd5..cd51235 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ 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);
[ Direct Link to Message ] | |
|
| |