Removed redundant tests

This commit is contained in:
Doug Binks 2025-12-29 17:02:10 +01:00
parent 680cef6aaf
commit bd80f1a3d3

View File

@ -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; uint64_t repeats;
@ -1467,7 +1467,7 @@ static void handleEvents(double* timeout)
incrementCursorImage(_glfw.wl.pointerFocus); 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) if (libdecor_dispatch(_glfw.wl.libdecor.context, 0) > 0)
event = GLFW_TRUE; event = GLFW_TRUE;