Fixed keyboard grab

This commit is contained in:
Daniel P. Berrange 2007-02-15 21:02:03 -05:00
parent 1b4d5e5b1a
commit ac9577ac9b
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ Further patches have been submitted by:
William Sheehan <william-dot-sheehan-at-openinterface-dot-com>
Karel Zak <kzak-at-redhat-dot-com>
Damien Durand (splinux25-at-gmail-dot-com)
Damien Durand <splinux25-at-gmail-dot-com>
Charles Coffing <ccoffing-at-novell-dot-com>
<...send a patch & get your name here...>

View File

@ -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()