diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx index 34a9e30db..e817b6840 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx @@ -26,6 +26,7 @@ #include #include // for close() #include +#include // for strerror() extern unsigned fl_cmap[256]; // defined in fl_color.cxx diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 6178b4c84..57d43c63c 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -41,6 +41,7 @@ #include #include #include +#include // for strerror() extern "C" { bool libdecor_get_cursor_settings(char **theme, int *size); } diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index a95029ee7..65bc72995 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -431,6 +431,7 @@ void Fl_Wayland_Window_Driver::flush() { Fl_Window_Driver::flush(); Fl_Wayland_Window_Driver::in_flush = false; + window->buffer->draw_buffer_needs_commit = true; wl_surface_frame(window->wl_surface); Fl_Wayland_Graphics_Driver::buffer_commit(window); }