Wayland: Fix events emitted before ack_configure

Window iconfication and maximization events were being emitted before
xdg_surface::configure, making it possible for user code to indirectly
commit surface changes from those event callbacks before
xdg_surface::ack_configure.

This postpones those events until after the ack has been sent.

(cherry picked from commit 85f5a51912)
This commit is contained in:
Camilla Löwy
2022-06-15 17:57:54 +02:00
parent 498a4d0635
commit e79d6fe40a
2 changed files with 32 additions and 23 deletions
+4
View File
@@ -189,6 +189,10 @@ typedef struct _GLFWwindowWayland
struct {
int width, height;
GLFWbool maximized;
GLFWbool iconified;
GLFWbool activated;
GLFWbool fullscreen;
} pending;
struct {