]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0038: Wayland: Not using bool type v9.2.0038
authorHirohito Higashi <h.east.727@gmail.com>
Sat, 21 Feb 2026 10:36:13 +0000 (10:36 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 21 Feb 2026 10:38:39 +0000 (10:38 +0000)
Problem:  Wayland: Not using Boolean type (after v9.2.0010)
Solution: Use bool type instead of int (Hirohito Higashi).

closes: #19473

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui.c
src/gui.h
src/gui_gtk_x11.c
src/version.c

index 9eef90f92f7732d06bb265b276e50e47a96fcc9d..36616867368f672677a8973162996bfff292c65e 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -484,7 +484,7 @@ gui_init_check(void)
 #else
 # ifdef FEAT_GUI_GTK
 #  ifdef GDK_WINDOWING_WAYLAND
-    gui.is_wayland = FALSE;
+    gui.is_wayland = false;
 #  endif
     /*
      * Note: Don't call gtk_init_check() before fork, it will be called after
index 2069e7486573459a9f473ad552e7b349090856ec..875db148b59f64fa96047b92eaa478faf70dbf5f 100644 (file)
--- a/src/gui.h
+++ b/src/gui.h
@@ -390,7 +390,7 @@ typedef struct Gui
 
     guint32    event_time;
 # ifdef GDK_WINDOWING_WAYLAND
-    _Bool      is_wayland;           // active gdk backend in gtk is wayland
+    bool       is_wayland;         // active gdk backend in gtk is wayland
 # endif
 #endif // FEAT_GUI_GTK
 
index 0732808980defd13f3c103d3501540fad36fd6b9..63adebfc97484fcb4345605af5a41e7f88150384 100644 (file)
@@ -4006,7 +4006,7 @@ gui_mch_init(void)
 #ifdef GDK_WINDOWING_WAYLAND
     GdkDisplay *d = gdk_display_get_default();
     if (GDK_IS_WAYLAND_DISPLAY(d))
-       gui.is_wayland = TRUE;
+       gui.is_wayland = true;
 #endif
 
     // Determine which events we will filter.
index 0ced1173e4b4a9bbdb2c6dfc09ed0a106ff4a1c1..871f3b23926524c6cf03915e7d9c2f0e149aaec4 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    38,
 /**/
     37,
 /**/