sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 0a39a64c540622763aca077d95ae314d6150ec94
parent 6bae8cc297776780572b024700d28e44f0ee4256
Author: Marcin sZpak <szpak@reakcja.org>
Date:   Sat, 14 Apr 2018 12:17:25 +0200

[surf] patch faster scroll (code cleanup)

Diffstat:
Msurf.suckless.org/patches/scroll-faster/surf-scrollmultiply-2.0.diff | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/surf.suckless.org/patches/scroll-faster/surf-scrollmultiply-2.0.diff b/surf.suckless.org/patches/scroll-faster/surf-scrollmultiply-2.0.diff @@ -1,8 +1,6 @@ -Only in surf: config.h -Only in surf: surf diff -up surf-2.0/surf.c surf/surf.c --- surf-2.0/surf.c 2018-04-13 10:55:11.036959113 +0200 -+++ surf/surf.c 2018-04-13 14:23:07.738793004 +0200 ++++ surf/surf.c 2018-04-14 12:12:41.519989478 +0200 @@ -179,6 +179,8 @@ static void initwebextensions(WebKitWebC static GtkWidget *createview(WebKitWebView *v, WebKitNavigationAction *a, Client *c); @@ -21,17 +19,14 @@ diff -up surf-2.0/surf.c surf/surf.c g_signal_connect(G_OBJECT(v), "close", G_CALLBACK(closeview), c); g_signal_connect(G_OBJECT(v), "create", -@@ -1229,6 +1233,16 @@ buttonreleased(GtkWidget *w, GdkEvent *e +@@ -1229,6 +1233,13 @@ buttonreleased(GtkWidget *w, GdkEvent *e return FALSE; } +gboolean +scrollmultiply(GtkWidget *w, GdkEvent *e, Client *c) +{ -+ int i; -+ + e->scroll.delta_y*=7; -+ + return FALSE; +} +