Wayland: Fix resize events before ack_configure

The surface was resized and the size event was emitted before we had
sent xdg_surface::ack_configure.  If user code then called some GLFW
function that commited the surface, those changes would all get applied
to the wrong configure event.

This postpones size changes until after the ack.

(cherry picked from commit e33db6d7aa)
This commit is contained in:
Camilla Löwy
2022-06-10 18:38:06 +02:00
parent ebe2b648ea
commit e894bf71a2
2 changed files with 42 additions and 24 deletions
+4
View File
@@ -189,6 +189,10 @@ typedef struct _GLFWwindowWayland
struct wl_egl_window* native;
struct wl_callback* callback;
struct {
int width, height;
} pending;
struct {
struct xdg_surface* surface;
struct xdg_toplevel* toplevel;