Wayland: Stop manually tracking interface versions

This is already tracked by the proxies we care about.
This commit is contained in:
Camilla Löwy
2022-11-03 20:54:32 +01:00
parent c1a79c1c41
commit 4cf510511c
3 changed files with 7 additions and 9 deletions
+4 -1
View File
@@ -342,8 +342,11 @@ static void resizeWindow(_GLFWwindow* window)
void _glfwUpdateContentScaleWayland(_GLFWwindow* window)
{
if (_glfw.wl.compositorVersion < WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
if (wl_compositor_get_version(_glfw.wl.compositor) <
WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
{
return;
}
// Get the scale factor from the highest scale monitor.
int maxScale = 1;