patch 9.2.0052: Wayland: hiding lower half of command line in tiny vim
Commit:
https://github.com/vim/vim/commit/b834c3f23bf7aca1d2d7160cd0360bdf06806f9f
Author: Hirohito Higashi <[email protected]>
Date: Tue Feb 24 22:13:52 2026 +0000
patch 9.2.0052: Wayland: hiding lower half of command line in tiny vim
Problem: Running gvim with a tiny build under a Wayland compositor
hides the bottom half of the command line
(dezza, after v9.1.1585).
Solution: When Wayland display protocol support is not compiled in
(HAVE_WAYLAND not defined), force the X11 GDK backend to avoid
display issues. This restores the gdk_set_allowed_backends("x11")
call that was removed by patch 9.1.1585, but only for builds
without Wayland support (e.g. tiny builds, see patch 9.1.1565)
(Hirohito Higashi)
fixes: #19483
closes: #19504
Signed-off-by: Hirohito Higashi <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 493ba56ef..2b67474ae 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -1720,6 +1720,13 @@ gui_mch_init_check(void)
}
#endif
+#if GTK_CHECK_VERSION(3,10,0) && !defined(HAVE_WAYLAND)
+ // Without Wayland display protocol support compiled in, force the X11 GDK
+ // backend to avoid display issues when running under a Wayland compositor
+ // (e.g., cmdline bottom half hidden in tiny builds, see patch 9.1.1585).
+ gdk_set_allowed_backends("x11");
+#endif
+
#ifdef FEAT_GUI_GNOME
if (gtk_socket_id == 0)
using_gnome = 1;
diff --git a/src/version.c b/src/version.c
index 2d8094030..36d32a15a 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 */
+/**/
+ 52,
/**/
51,
/**/
--
--
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/E1vvKaC-00CrZ6-N6%40256bit.org.