parent
3fa84339a9
commit
78b4eab4ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/vte-0.37.0.tar.xz
|
||||
39
0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
Normal file
39
0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 9077ef68bebee9a22d836a00af72aa02d5628ed4 Mon Sep 17 00:00:00 2001
|
||||
From: Bastien Nocera <hadess@hadess.net>
|
||||
Date: Fri, 16 Nov 2012 16:18:05 +0100
|
||||
Subject: [PATCH] widget: Only show the cursor on motion if moved
|
||||
|
||||
Some devices, like Wacom tablets, will emit mouse motion
|
||||
events even when the mouse doesn't move on the tablet. This
|
||||
means that the mouse cursor will show up on the screen very shortly
|
||||
after hiding.
|
||||
|
||||
We now check the motion event against the last location of the
|
||||
mouse cursor to avoid this behaviour.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=688456
|
||||
---
|
||||
src/vte.c | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/vte.c b/src/vte.c
|
||||
index bbe6cf6..c5922e6 100644
|
||||
--- a/src/vte.c
|
||||
+++ b/src/vte.c
|
||||
@@ -7294,8 +7294,11 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
|
||||
} else {
|
||||
/* Hilite any matches. */
|
||||
vte_terminal_match_hilite(terminal, x, y);
|
||||
- /* Show the cursor. */
|
||||
- _vte_terminal_set_pointer_visible(terminal, TRUE);
|
||||
+ /* Show the cursor if we moved. */
|
||||
+ if (event->type != GDK_MOTION_NOTIFY ||
|
||||
+ x != terminal->pvt->mouse_last_x ||
|
||||
+ y != terminal->pvt->mouse_last_y)
|
||||
+ _vte_terminal_set_pointer_visible(terminal, TRUE);
|
||||
}
|
||||
|
||||
switch (event->type) {
|
||||
--
|
||||
1.8.0
|
||||
|
||||
90
vte291.spec
Normal file
90
vte291.spec
Normal file
@ -0,0 +1,90 @@
|
||||
%global apiver 2.91
|
||||
|
||||
Name: vte291
|
||||
Version: 0.37.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Terminal emulator library
|
||||
|
||||
License: LGPLv2+
|
||||
URL: http://www.gnome.org/
|
||||
Source0: http://download.gnome.org/sources/vte/0.37/vte-%{version}.tar.xz
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=688456
|
||||
Patch2: 0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: vala-tools
|
||||
|
||||
# initscripts creates the utmp group
|
||||
Requires: initscripts
|
||||
|
||||
%description
|
||||
VTE is a library implementing a terminal emulator widget for GTK+. VTE
|
||||
is mainly used in gnome-terminal, but can also be used to embed a
|
||||
console/terminal in games, editors, IDEs, etc.
|
||||
|
||||
VTE supports Unicode and character set conversion, as well as emulating
|
||||
any terminal known to the system's terminfo database.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n vte-%{version}
|
||||
%patch2 -p1 -b .motion
|
||||
|
||||
%build
|
||||
CFLAGS="%optflags -fPIE -DPIE" \
|
||||
CXXFLAGS="$CFLAGS" \
|
||||
LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now -pie" \
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-gtk=3.0 \
|
||||
--libexecdir=%{_libdir}/vte-%{apiver} \
|
||||
--disable-gtk-doc \
|
||||
--enable-introspection
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# Rename the profile script for parallel installability
|
||||
mv $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/vte.sh \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/profile.d/vte-%{apiver}.sh
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
%find_lang vte-%{apiver}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files -f vte-%{apiver}.lang
|
||||
%doc COPYING NEWS README
|
||||
%{_sysconfdir}/profile.d/vte-%{apiver}.sh
|
||||
%{_libdir}/libvte-%{apiver}.so.0*
|
||||
%dir %{_libdir}/vte-%{apiver}
|
||||
%attr(2711,root,utmp) %{_libdir}/vte-%{apiver}/gnome-pty-helper
|
||||
%{_libdir}/girepository-1.0/
|
||||
|
||||
%files devel
|
||||
%{_bindir}/vte-%{apiver}
|
||||
%{_includedir}/vte-%{apiver}/
|
||||
%{_libdir}/libvte-%{apiver}.so
|
||||
%{_libdir}/pkgconfig/vte-%{apiver}.pc
|
||||
%{_datadir}/gir-1.0/
|
||||
%doc %{_datadir}/gtk-doc/
|
||||
%{_datadir}/vala/
|
||||
|
||||
%changelog
|
||||
* Tue May 06 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.0-1
|
||||
- Initial Fedora package, based on previous vte3 0.36 packaging
|
||||
Loading…
Reference in New Issue
Block a user