linux/x11: Fix CPU being pinned at 100% in X11 loop (#13458)

This was part of https://github.com/zed-industries/zed/pull/13355 to fix
the problem of XIM events not waking up the loop. Problem is that it
seems to pin a single CPU at 100%.

Luckily, it looks like the change is not necessary anymore after we
refactored the improvements in #13355.

This fixes https://github.com/zed-industries/zed/issues/13409.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-06-24 11:11:17 +02:00 committed by GitHub
parent d2a2faf7a2
commit 9ef9baef6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,7 +291,7 @@ impl X11Client {
.insert_source( .insert_source(
Generic::new_with_error::<EventHandlerError>( Generic::new_with_error::<EventHandlerError>(
fd, fd,
calloop::Interest::BOTH, calloop::Interest::READ,
calloop::Mode::Level, calloop::Mode::Level,
), ),
{ {