Only fake events if there is an active VNC connection
This commit is contained in:
parent
d45256e748
commit
b2afcd93e6
|
@ -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 = {}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue