Fix GNOME breaking when setting window geometry

The current version of GNOME has a regression that causes the compositor
to send incorrect geometry with the next configure event if the CSD
buffers are created after a call to set_window_geometry.

So call set_window_geometry last. And shake head sadly.
This commit is contained in:
Kovid Goyal
2021-04-07 22:14:09 +05:30
parent 82a5733ec5
commit 4e6d5d3f1e
4 changed files with 24 additions and 24 deletions

4
glfw/wl_platform.h vendored
View File

@@ -186,6 +186,10 @@ typedef struct _GLFWwindowWayland
unsigned int width, top, horizontal, vertical, visible_titlebar_height;
} metrics;
struct {
int32_t x, y, width, height;
} geometry;
struct {
uint32_t *data;
size_t for_decoration_size, stride, segments, corner_size;