[wiki] [sites] [surf] patch faster scroll (code cleanup) || Marcin sZpak
commit 0a39a64c540622763aca077d95ae314d6150ec94
Author: Marcin sZpak <szpak_AT_reakcja.org>
Date: Sat Apr 14 12:17:25 2018 +0200
[surf] patch faster scroll (code cleanup)
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
index 4e834cae..22298eb9 100644
--- a/surf.suckless.org/patches/scroll-faster/surf-scrollmultiply-2.0.diff
+++ b/surf.suckless.org/patches/scroll-faster/surf-scrollmultiply-2.0.diff
_AT_@ -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
_AT_@ -179,6 +179,8 @@ static void initwebextensions(WebKitWebC
static GtkWidget *createview(WebKitWebView *v, WebKitNavigationAction *a,
Client *c);
_AT_@ -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",
-_AT_@ -1229,6 +1233,16 @@ buttonreleased(GtkWidget *w, GdkEvent *e
+_AT_@ -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;
+}
+
Received on Sat Apr 14 2018 - 12:18:21 CEST
This archive was generated by hypermail 2.3.0
: Sat Apr 14 2018 - 12:24:23 CEST