From bd80f1a3d31e742f1a4e9beea03ca770a7be9813 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Mon, 29 Dec 2025 17:02:10 +0100 Subject: [PATCH] Removed redundant tests --- src/wl_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 6fd2cae62..64c314bbd 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1459,7 +1459,7 @@ static void handleEvents(double* timeout) } } - if ((fds[CURSOR_FD].fd > 0 ) && (fds[CURSOR_FD].revents & POLLIN)) + if (fds[CURSOR_FD].revents & POLLIN) { uint64_t repeats; @@ -1467,7 +1467,7 @@ static void handleEvents(double* timeout) incrementCursorImage(_glfw.wl.pointerFocus); } - if ((fds[LIBDECOR_FD].fd > 0 ) && (fds[LIBDECOR_FD].revents & POLLIN)) + if (fds[LIBDECOR_FD].revents & POLLIN) { if (libdecor_dispatch(_glfw.wl.libdecor.context, 0) > 0) event = GLFW_TRUE;