Skip to content

Commit

Permalink
Wayland: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elmindreda committed Jun 21, 2022
1 parent 229d628 commit 33d3778
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,9 @@ static void registryHandleGlobalRemove(void* userData,
struct wl_registry* registry,
uint32_t name)
{
_GLFWmonitor* monitor;

for (int 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);
Expand Down

0 comments on commit 33d3778

Please sign in to comment.