vnc: Default to automatic keyboard grabbing

This is what vinagre and virt-viewer do, and what gtkvnc enables by default.
It has some weird symantics, namely that moving the mouse over the viewer
means alt-tab is only received by the guest. But it's the common mode
of operation, so let's be consistent.
This commit is contained in:
Cole Robinson 2012-07-15 10:53:52 -04:00
parent a96a3245fb
commit 8bfad3a2cc

View File

@ -329,7 +329,7 @@ class VNCViewer(Viewer):
self.console.refresh_scaling() self.console.refresh_scaling()
self.display.set_keyboard_grab(False) self.display.set_keyboard_grab(True)
self.display.set_pointer_grab(True) self.display.set_pointer_grab(True)
self.display.connect("vnc-pointer-grab", self.console.pointer_grabbed) self.display.connect("vnc-pointer-grab", self.console.pointer_grabbed)