Wayland: Stop manually tracking interface versions

This is already tracked by the proxies we care about.

(cherry picked from commit 4cf510511c)
This commit is contained in:
Camilla Löwy
2022-11-03 20:54:32 +01:00
parent 1de73c0dc5
commit a29b5f38c6
3 changed files with 7 additions and 9 deletions
+4 -1
View File
@@ -381,8 +381,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;