Glfw frameBufferSize is messed up at start

Hello. I am using arch linux and hyprland and i am having issues with glfw specifically the frame buffer size, at the start i have it where it will renderer an texture quad across the image, and if i use the set height and width the height is to small but when i use frame buffer size the height is way to big
the size it should be is 960x540, the frame buffer size 960x1044, and the size it is after a couple frames: 960x588 and for some reason after calling glfwSwapBuffers 3 times and glfwPollEvents it updates to 960x588. Any help will be usefull, thank you.

computer specs if needed:

OS: Arch Linux x86_64
Host: Latitude 5480
Kernel: 6.14.6-arch1-1
CPU: Intel i5-7300U (4) @ 3.500GHz
GPU: Intel HD Graphics 620

Hi @levi73159,

What version of GLFW does this occur with? GLFW 3.4 has some fixes for frame buffer size on Wayland.

The version is: GLFW version: 3.4.0
but if you want the version string return by glfw:
3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic shared

I believe the Wayland protocol (as well as X11) is asynchronous, so it’s possible that this is simply a consequence of that design. Does the frame buffer size settle down to the correct one - in your text you mention it should be 960x540 but settles to 960x588 however I want to check this is not a typo as you mention that value twice.

You might want to see if using the GLFW_SCALE_FRAMEBUFFER hint helps.

yes it is not a type, i putted the size at 960x540 but after a bit it settles to 960x588, i try to set the min and max size, and even the aspect ratio but to no avail

and @dougbinks i try to set the window hint, to false or true but none works, it still settles at 960x588