]> granicus.if.org Git - vim/commitdiff
patch 8.2.4599: GTK: get assertion errors when scrolling a split window v8.2.4599
authorBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2022 15:43:01 +0000 (15:43 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2022 15:43:01 +0000 (15:43 +0000)
Problem:    GTK: get assertion errors when scrolling a split window.
Solution:   Use GDK_IS_DRAWABLE() on the scrollbar window. (closes #9982)

src/gui_gtk.c
src/version.c

index 08290a56f4d9b629b46b8a9b3b098c1d0b64c33f..0b98fd49e33aaba09ee17745d8cc497322d86c62 100644 (file)
@@ -1107,7 +1107,7 @@ adjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
     {
        dragging = TRUE;
 
-       if (sb->wp != NULL)
+       if (sb->wp != NULL && GDK_IS_DRAWABLE(sb->id->window))
        {
            int                 x;
            int                 y;
index 1e02a5844ca4153b9b7497a380f4a1ed5aa600d1..0a6c036231efa1eed30a53b3dd4a8f7181b47382 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4599,
 /**/
     4598,
 /**/