changeset 28150:0fa25a1b8451 v8.2.4599

patch 8.2.4599: GTK: get assertion errors when scrolling a split window Commit: https://github.com/vim/vim/commit/a4df834a92535cf124afd1c3b711b4a7109e3534 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 15:43:01 2022 +0000 patch 8.2.4599: GTK: get assertion errors when scrolling a split window Problem: GTK: get assertion errors when scrolling a split window. Solution: Use GDK_IS_DRAWABLE() on the scrollbar window. (closes https://github.com/vim/vim/issues/9982)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Mar 2022 16:45:03 +0100
parents ae31388267e7
children ed461ca13cad
files src/gui_gtk.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -1107,7 +1107,7 @@ adjustment_value_changed(GtkAdjustment *
     {
 	dragging = TRUE;
 
-	if (sb->wp != NULL)
+	if (sb->wp != NULL && GDK_IS_DRAWABLE(sb->id->window))
 	{
 	    int			x;
 	    int			y;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4599,
+/**/
     4598,
 /**/
     4597,