mirror of https://gitee.com/openkylin/vte2.91.git
_scroll_notebook
With the addition of 043_notebook_scroll.patch in gtk+3.0, it is possible to switch tabs with Alt+mouse wheel from anywhere on the notebook. This patch prevents vte from interecepting the signal. Corresponding GTK+ bug: GNOME #145244 Gbp-Pq: Name 01_scroll_notebook.patch
This commit is contained in:
parent
328c173f83
commit
a5510b463a
|
@ -9455,6 +9455,13 @@ Terminal::widget_scroll(GdkEventScroll *event)
|
||||||
|
|
||||||
read_modifiers(base_event);
|
read_modifiers(base_event);
|
||||||
|
|
||||||
|
#if GTK_CHECK_VERSION (2, 90, 8)
|
||||||
|
/* Do not intercept Alt+scroll, let the GtkNotebook handle it to switch tabs.
|
||||||
|
Requires a fixed GTK+, see https://bugzilla.gnome.org/show_bug.cgi?id=145244 */
|
||||||
|
if (event->state & GDK_MOD1_MASK)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (event->direction) {
|
switch (event->direction) {
|
||||||
case GDK_SCROLL_UP:
|
case GDK_SCROLL_UP:
|
||||||
m_mouse_smooth_scroll_delta -= 1.;
|
m_mouse_smooth_scroll_delta -= 1.;
|
||||||
|
|
Loading…
Reference in New Issue