Wayland/X11 hybrid: fix crash of test program demo.

This commit is contained in:
ManoloFLTK 2022-08-29 18:34:11 +02:00
parent c20e7d9efc
commit 9276ade07b

View File

@ -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);