From 2529e663d7be39dfbd8defc7f2f0148bea4ea17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 14 Jun 2022 18:12:49 +0200 Subject: [PATCH] Wayland: Cleanup (cherry picked from commit 33d37782c6551fe67c553dd077ad7ee79f1b76f4) --- src/wl_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wl_init.c b/src/wl_init.c index 95fd064d..e041d261 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -146,11 +146,10 @@ static void registryHandleGlobalRemove(void* userData, uint32_t name) { int i; - _GLFWmonitor* monitor; for (i = 0; i < _glfw.monitorCount; ++i) { - monitor = _glfw.monitors[i]; + _GLFWmonitor* monitor = _glfw.monitors[i]; if (monitor->wl.name == name) { _glfwInputMonitor(monitor, GLFW_DISCONNECTED, 0);