Wayland: Cache framebuffer size

The calculation of framebuffer size is about to get more complicated
with the introduction of fractional-scale-v1, so only do it in one
place.

This is also a tiny preparation for eventually behaving better towards
wl_egl_window_resize.
This commit is contained in:
Camilla Löwy
2024-02-08 22:07:11 +01:00
parent 1be7bc546b
commit 9953f7ead1
2 changed files with 16 additions and 10 deletions
+1
View File
@@ -348,6 +348,7 @@ typedef struct _GLFWscaleWayland
typedef struct _GLFWwindowWayland
{
int width, height;
int fbWidth, fbHeight;
GLFWbool visible;
GLFWbool maximized;
GLFWbool activated;