Wayland: make sure wl_surface_frame() is followed by wl_surface_commit().

This commit is contained in:
ManoloFLTK 2022-08-06 17:30:44 +02:00
parent 149673863d
commit b25549ffa7
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <sys/mman.h>
#include <unistd.h> // for close()
#include <errno.h>
#include <string.h> // for strerror()
extern unsigned fl_cmap[256]; // defined in fl_color.cxx

View File

@ -41,6 +41,7 @@
#include <sys/mman.h>
#include <poll.h>
#include <errno.h>
#include <string.h> // for strerror()
extern "C" {
bool libdecor_get_cursor_settings(char **theme, int *size);
}

View File

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