From: Christoffer Aasted Date: Wed, 18 Feb 2026 18:13:18 +0000 (+0000) Subject: patch 9.2.0018: high cpu usage with Wayland compositor X-Git-Tag: v9.2.0018^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=392ed90a9a94f42a195d88378c34e6fbb7ea1bf9;p=thirdparty%2Fvim.git patch 9.2.0018: high cpu usage with Wayland compositor Problem: High cpu usage with Wayland compositor (lilydjwg, after v9.2.0010). Solution: Partly revert patch v9.2.0010 for now (Christoffer Aasted) fixes: #19448 closes: #19451 Signed-off-by: Christoffer Aasted Signed-off-by: Christian Brabandt --- diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index ac8aa0721c..0732808980 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6728,14 +6728,7 @@ gui_mch_wait_for_chars(long wtime) * situations, sort of race condition). */ if (!input_available()) - { -#ifdef GDK_WINDOWING_WAYLAND - if (gui.is_wayland) - g_main_context_iteration(NULL, FALSE); - else -#endif - g_main_context_iteration(NULL, TRUE); - } + g_main_context_iteration(NULL, TRUE); // Got char, return immediately if (input_available()) diff --git a/src/version.c b/src/version.c index fd53cbfb66..4f41552007 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 18, /**/ 17, /**/