core: avoid calling wl_display_read_events after poll returned due to EINTR

This commit is contained in:
Maximilian Seidler 2025-04-30 08:02:14 +02:00
parent 82808290d9
commit 5c344e753f

View file

@ -366,8 +366,9 @@ void CHyprlock::run() {
events = poll(pollfds, fdcount, 5000);
if (events < 0) {
wl_display_cancel_read(m_sWaylandState.display);
RASSERT(errno == EINTR, "[core] Polling fds failed with {}", errno);
wl_display_cancel_read(m_sWaylandState.display);
continue;
}
for (size_t i = 0; i < fdcount; ++i) {