From ac9577ac9b5213fff6fb023f7f979b4e7c40ed6a Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 15 Feb 2007 21:02:03 -0500 Subject: [PATCH] Fixed keyboard grab --- AUTHORS | 4 +++- src/vncViewer/vnc.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index fc0ca35fa..6837f5811 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,7 +16,9 @@ Further patches have been submitted by: William Sheehan Karel Zak - Damien Durand (splinux25-at-gmail-dot-com) + Damien Durand + Charles Coffing + <...send a patch & get your name here...> diff --git a/src/vncViewer/vnc.py b/src/vncViewer/vnc.py index 3e95f8f1e..b96003b00 100755 --- a/src/vncViewer/vnc.py +++ b/src/vncViewer/vnc.py @@ -424,7 +424,7 @@ class GRFBViewer(gtk.DrawingArea): def set_autograb_keyboard(self, grab): self.autograbkey = grab - if grab == False and grabbedKeyboard: + if grab == False and self.grabbedKeyboard: self.ungrab_keyboard()