comparison src/gui_gtk_x11.c @ 34316:bce11c34ef41 v9.1.0092

patch 9.1.0092: Compiler warning for missing type in scroll_event() Commit: https://github.com/vim/vim/commit/c908371aec920b8174e40a1adb73a50e326a5668 Author: Christian Brabandt <cb@256bit.org> Date: Sat Feb 10 13:17:16 2024 +0100 patch 9.1.0092: Compiler warning for missing type in scroll_event() Problem: Compiler warning for missing type in scroll_event() (chdiza) Solution: Declare display_type explicitly as integer fixes: #14005 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2024 13:30:03 +0100
parents 7c95f913fdd6
children 743a5c97b0a2
comparison
equal deleted inserted replaced
34315:8bd48fdd3413 34316:bce11c34ef41
2063 #if !GTK_CHECK_VERSION(3,22,0) 2063 #if !GTK_CHECK_VERSION(3,22,0)
2064 static guint32 last_smooth_event_time; 2064 static guint32 last_smooth_event_time;
2065 #endif 2065 #endif
2066 #define DT_X11 1 2066 #define DT_X11 1
2067 #define DT_WAYLAND 2 2067 #define DT_WAYLAND 2
2068 static display_type; 2068 static int display_type;
2069 if (!display_type) 2069 if (!display_type)
2070 display_type = gui_mch_get_display() ? DT_X11 : DT_WAYLAND; 2070 display_type = gui_mch_get_display() ? DT_X11 : DT_WAYLAND;
2071 #endif 2071 #endif
2072 2072
2073 if (gtk_socket_id != 0 && !gtk_widget_has_focus(widget)) 2073 if (gtk_socket_id != 0 && !gtk_widget_has_focus(widget))