Commit: patch 9.2.0018: high cpu usage with Wayland compositor

0 views
Skip to first unread message

Christian Brabandt

unread,
Feb 18, 2026, 1:31:43 PM (2 days ago) Feb 18
to vim...@googlegroups.com
patch 9.2.0018: high cpu usage with Wayland compositor

Commit: https://github.com/vim/vim/commit/392ed90a9a94f42a195d88378c34e6fbb7ea1bf9
Author: Christoffer Aasted <dez...@gmail.com>
Date: Wed Feb 18 18:13:18 2026 +0000

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 <dez...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index ac8aa0721..073280898 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 fd53cbfb6..4f4155200 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,
/**/
Reply all
Reply to author
Forward
0 new messages