Skip to content

Instantly share code, notes, and snippets.

/-

Created October 28, 2014 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/84d1545df63a4e0ad981 to your computer and use it in GitHub Desktop.
Save anonymous/84d1545df63a4e0ad981 to your computer and use it in GitHub Desktop.
diff --git a/os/os-scrollbar.c b/os/os-scrollbar.c
index 8452844..0e4ad9c 100644
--- a/os/os-scrollbar.c
+++ b/os/os-scrollbar.c
@@ -4166,7 +4166,7 @@ patch_scrollbar_class_vtable (GType type)
if (widget_class->state_changed == pre_hijacked_scrollbar_state_changed)
widget_class->state_changed = hijacked_scrollbar_state_changed;
#endif
- if (widget_class->grab_notify == pre_hijacked_scrollbar_grab_notify)
+ if (widget_class->grab_notify == pre_hijacked_scrollbar_grab_notify && pre_hijacked_scrollbar_grab_notify)
widget_class->grab_notify = hijacked_scrollbar_grab_notify;
if (widget_class->hide == pre_hijacked_scrollbar_hide)
widget_class->hide = hijacked_scrollbar_hide;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment