patch 9.2.0018: high cpu usage with Wayland compositor
Commit:
https://github.com/vim/vim/commit/392ed90a9a94f42a195d88378c34e6fbb7ea1bf9
Author: Christoffer Aasted <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vsmJH-001HRu-Qy%40256bit.org.