summaryrefslogtreecommitdiff
path: root/debian/patches/02_notebook_scroll.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-09-28 22:16:40 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-09-28 22:16:40 +0300
commit10b769e541b7ac3ae0d71a5fcfbc7b6fb4e0fda8 (patch)
treee894348310031a84c29f432dbdb7cce7313d0a4b /debian/patches/02_notebook_scroll.patch
downloadwebkit-debian.tar.gz
webkitgtk 2.4.11-3debian/2.4.11-3debian
Diffstat (limited to 'debian/patches/02_notebook_scroll.patch')
-rw-r--r--debian/patches/02_notebook_scroll.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/02_notebook_scroll.patch b/debian/patches/02_notebook_scroll.patch
new file mode 100644
index 0000000..3a459fa
--- /dev/null
+++ b/debian/patches/02_notebook_scroll.patch
@@ -0,0 +1,20 @@
+From: Josselin Mouette <joss@debian.org>
+Subject: Add support for switching tabs with alt+scroll
+Bug-Debian: https://bugs.debian.org/640980
+Index: webkitgtk/Source/WebKit/gtk/webkit/webkitwebview.cpp
+===================================================================
+--- webkitgtk.orig/Source/WebKit/gtk/webkit/webkitwebview.cpp
++++ webkitgtk/Source/WebKit/gtk/webkit/webkitwebview.cpp
+@@ -813,6 +813,12 @@ static gboolean webkit_web_view_scroll_e
+ if (!frame.view())
+ return FALSE;
+
++#ifndef GTK_API_VERSION_2
++ /* Ignore Alt-scroll events in GTK3 so that GtkNotebook can use it to switch tabs */
++ if (event->state & GDK_MOD1_MASK)
++ return FALSE;
++#endif
++
+ PlatformWheelEvent wheelEvent(event);
+ return frame.eventHandler().handleWheelEvent(wheelEvent);
+ }