Fix ungrab when pointer type changes

This commit is contained in:
Daniel P. Berrange 2009-03-27 15:14:37 +00:00
parent 80ee1d7531
commit 552f41223f
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -rup gtk-vnc-0.3.8.orig/src/vncdisplay.c gtk-vnc-0.3.8.new/src/vncdisplay.c
--- gtk-vnc-0.3.8.orig/src/vncdisplay.c 2009-03-27 15:09:37.000000000 +0000
+++ gtk-vnc-0.3.8.new/src/vncdisplay.c 2009-03-27 15:10:14.000000000 +0000
@@ -1034,7 +1034,7 @@ static gboolean on_pointer_type_change(v
VncDisplay *obj = VNC_DISPLAY(opaque);
VncDisplayPrivate *priv = obj->priv;
- if (absolute && priv->in_pointer_grab && !priv->grab_pointer)
+ if (absolute && priv->in_pointer_grab && priv->grab_pointer)
do_pointer_ungrab(obj, FALSE);
priv->absolute = absolute;

View File

@ -7,7 +7,7 @@
Summary: A GTK widget for VNC clients
Name: gtk-vnc
Version: 0.3.8
Release: 7%{?dist}
Release: 8%{?dist}
License: LGPLv2+
Group: Development/Libraries
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.3/%{name}-%{version}.tar.gz
@ -15,6 +15,7 @@ Patch1: %{name}-%{version}-relative-mouse.patch
Patch2: %{name}-%{version}-sasl-auth.patch
Patch3: %{name}-%{version}-sasl-auth-tunnel.patch
Patch4: %{name}-%{version}-ungrab.patch
Patch5: %{name}-%{version}-ungrab-2.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: http://live.gnome.org/gtk-vnc
BuildRequires: gtk2-devel pygtk2-devel python-devel zlib-devel
@ -77,6 +78,7 @@ browsers.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
# Temp hack for patch2
@ -136,6 +138,9 @@ rm -fr %{buildroot}
%endif
%changelog
* Fri Mar 27 2009 Daniel P. Berrange <berrange@redhat.com> - 0.3.8-8.fc11
- Fix ungrab when pointer type changes
* Tue Mar 24 2009 Daniel P. Berrange <berrange@redhat.com> - 0.3.8-7.fc11
- Fix release of keyboard grab when releasing mouse grab outside app window (rhbz #491167)