summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-20 15:43:01 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-20 15:43:01 +0000
commita4df834a92535cf124afd1c3b711b4a7109e3534 (patch)
treec32815382c16c9665ef06cb2cabf6a0dfde77752 /src/gui_gtk.c
parent7e0be3ea211748a77d32cb1d3d35ecfc246cf0f2 (diff)
patch 8.2.4599: GTK: get assertion errors when scrolling a split windowv8.2.4599
Problem: GTK: get assertion errors when scrolling a split window. Solution: Use GDK_IS_DRAWABLE() on the scrollbar window. (closes #9982)
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index 08290a56f4..0b98fd49e3 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -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;