From 9ef9baef6f50c648b6a159feea9e73ece9137b33 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Mon, 24 Jun 2024 11:11:17 +0200 Subject: [PATCH] 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 --- crates/gpui/src/platform/linux/x11/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rs index cbae79a8d2..bde4dfb4fa 100644 --- a/crates/gpui/src/platform/linux/x11/client.rs +++ b/crates/gpui/src/platform/linux/x11/client.rs @@ -291,7 +291,7 @@ impl X11Client { .insert_source( Generic::new_with_error::( fd, - calloop::Interest::BOTH, + calloop::Interest::READ, calloop::Mode::Level, ), {