mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
Reset modifiers when disconnectin from server too
This commit is contained in:
parent
b2afcd93e6
commit
9845dba1f2
@ -307,6 +307,12 @@ class GRFBViewer(gtk.DrawingArea):
|
||||
if self.client == None:
|
||||
return
|
||||
|
||||
# Reset server state in case we have modifiers pressed
|
||||
for key in self.modifiersOn.keys():
|
||||
if not(self.client is None):
|
||||
self.client.update_key(0, key)
|
||||
self.modifiersOn = {}
|
||||
|
||||
self.client.close()
|
||||
self.client = None
|
||||
self.emit("disconnected")
|
||||
|
Loading…
Reference in New Issue
Block a user