Skip to content

Commit 48a3b14

Browse files
dezzachrisbra
authored andcommitted
patch 9.1.1585: Wayland: gvim still needs GVIM_ENABLE_WAYLAND
Problem: Wayland: gvim still needs GVIM_ENABLE_WAYLAND Solution: Drop the GVIM_ENABLE_WAYLAND code, always enable both X11 and Wayland GUI support (Christoffer Aasted) closes: #17817 Signed-off-by: Christoffer Aasted <chr.aasted@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 714671d commit 48a3b14

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

runtime/doc/gui_x11.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_x11.txt* For Vim version 9.1. Last change: 2024 Nov 17
1+
*gui_x11.txt* For Vim version 9.1. Last change: 2025 Jul 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -649,9 +649,8 @@ X11R5 with a library for X11R6 probably doesn't work (although the linking
649649
won't give an error message, Vim will crash later).
650650

651651
*gui-wayland*
652-
Initial support for the Wayland display server protocol has landed in patch
653-
9.1.0064. To enable it, you need to set the environment variable
654-
"$GVIM_ENABLE_WAYLAND" in your shell.
652+
Support for the Wayland display server protocol has landed in patch
653+
9.1.0064.
655654

656655
Note: The Wayland protocol is subject to some restrictions, so the following
657656
functions won't work: |getwinpos()|, |getwinposx()|, |getwinposy()| and the

src/gui_gtk_x11.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,15 +1732,6 @@ gui_mch_init_check(void)
17321732
}
17331733
#endif
17341734

1735-
#if GTK_CHECK_VERSION(3,10,0)
1736-
// Vim currently assumes that Gtk means X11, so it cannot use native Gtk
1737-
// support for other backends such as Wayland.
1738-
//
1739-
// Use an environment variable to enable unfinished Wayland support.
1740-
if (getenv("GVIM_ENABLE_WAYLAND") == NULL)
1741-
gdk_set_allowed_backends ("x11");
1742-
#endif
1743-
17441735
#ifdef FEAT_GUI_GNOME
17451736
if (gtk_socket_id == 0)
17461737
using_gnome = 1;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
1585,
722724
/**/
723725
1584,
724726
/**/

0 commit comments

Comments
 (0)