Only fake events if there is an active VNC connection

This commit is contained in:
Daniel P. Berrange 2006-10-12 18:07:21 -04:00
parent d45256e748
commit b2afcd93e6
1 changed files with 2 additions and 1 deletions

View File

@ -396,7 +396,8 @@ class GRFBViewer(gtk.DrawingArea):
def focus_out(self, win, event):
# Forceably release any modifiers still on
for key in self.modifiersOn.keys():
self.client.update_key(0, key)
if not(self.client is None):
self.client.update_key(0, key)
self.modifiersOn = {}