diff --git a/desktop/lxde/libfm/files/Fix_smooth_scrolling.patch b/desktop/lxde/libfm/files/Fix_smooth_scrolling.patch new file mode 100644 index 0000000000..7342444399 --- /dev/null +++ b/desktop/lxde/libfm/files/Fix_smooth_scrolling.patch @@ -0,0 +1,34 @@ +From a94ddc137bcdd88f088a462c488b89080fd6d01f Mon Sep 17 00:00:00 2001 +From: anteater <65555601+nt8r@users.noreply.github.com> +Date: Sun, 23 Oct 2022 20:41:00 +0000 +Subject: [PATCH] Fix smooth scrolling + +The first hunk is necessary to receive smooth scroll events. +The second fixes a visual hang until scrolling ends. +--- + src/gtk/exo/exo-icon-view.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/gtk/exo/exo-icon-view.c b/src/gtk/exo/exo-icon-view.c +index 3ce98099..9a432620 100644 +--- a/src/gtk/exo/exo-icon-view.c ++++ b/src/gtk/exo/exo-icon-view.c +@@ -1601,6 +1601,9 @@ exo_icon_view_realize (GtkWidget *widget) + attributes.height = MAX (priv->height, allocation.height); + attributes.event_mask = GDK_EXPOSURE_MASK + | GDK_SCROLL_MASK ++#if GTK_CHECK_VERSION(3, 4, 0) ++ | GDK_SMOOTH_SCROLL_MASK ++#endif + | GDK_POINTER_MOTION_MASK + | GDK_BUTTON_PRESS_MASK + | GDK_BUTTON_RELEASE_MASK +@@ -3413,8 +3416,6 @@ exo_icon_view_adjustment_changed (GtkAdjustment *adjustment, + + if (G_UNLIKELY (icon_view->priv->doing_rubberband)) + exo_icon_view_update_rubberband (GTK_WIDGET (icon_view)); +- +- gdk_window_process_updates (icon_view->priv->bin_window, TRUE); + } + } + diff --git a/desktop/lxde/libfm/pspec.xml b/desktop/lxde/libfm/pspec.xml index 244f5b3610..b40fd39735 100644 --- a/desktop/lxde/libfm/pspec.xml +++ b/desktop/lxde/libfm/pspec.xml @@ -33,7 +33,7 @@ libfm-extra-devel - + Fix_smooth_scrolling.patch @@ -114,7 +114,7 @@ - 2022-04-14 + 2022-11-05 1.3.2 Rebuild with gtk+3 fury