Fix_smooth_scrolling.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From a94ddc137bcdd88f088a462c488b89080fd6d01f Mon Sep 17 00:00:00 2001
  2. From: anteater <65555601+nt8r@users.noreply.github.com>
  3. Date: Sun, 23 Oct 2022 20:41:00 +0000
  4. Subject: [PATCH] Fix smooth scrolling
  5. The first hunk is necessary to receive smooth scroll events.
  6. The second fixes a visual hang until scrolling ends.
  7. ---
  8. src/gtk/exo/exo-icon-view.c | 5 +++--
  9. 1 file changed, 3 insertions(+), 2 deletions(-)
  10. diff --git a/src/gtk/exo/exo-icon-view.c b/src/gtk/exo/exo-icon-view.c
  11. index 3ce98099..9a432620 100644
  12. --- a/src/gtk/exo/exo-icon-view.c
  13. +++ b/src/gtk/exo/exo-icon-view.c
  14. @@ -1601,6 +1601,9 @@ exo_icon_view_realize (GtkWidget *widget)
  15. attributes.height = MAX (priv->height, allocation.height);
  16. attributes.event_mask = GDK_EXPOSURE_MASK
  17. | GDK_SCROLL_MASK
  18. +#if GTK_CHECK_VERSION(3, 4, 0)
  19. + | GDK_SMOOTH_SCROLL_MASK
  20. +#endif
  21. | GDK_POINTER_MOTION_MASK
  22. | GDK_BUTTON_PRESS_MASK
  23. | GDK_BUTTON_RELEASE_MASK
  24. @@ -3413,8 +3416,6 @@ exo_icon_view_adjustment_changed (GtkAdjustment *adjustment,
  25. if (G_UNLIKELY (icon_view->priv->doing_rubberband))
  26. exo_icon_view_update_rubberband (GTK_WIDGET (icon_view));
  27. -
  28. - gdk_window_process_updates (icon_view->priv->bin_window, TRUE);
  29. }
  30. }