summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2012-07-15 10:53:52 -0400
committerCole Robinson <crobinso@redhat.com>2012-07-15 10:53:52 -0400
commit8bfad3a2cc1c83e8d0f04f232b0ebe0847fd6bca (patch)
treed11237ea5cc2f954f268e7e96fbeed9e58da6863
parenta96a3245fb556dc02ff471c223c7728ea76b6fab (diff)
downloadvirt-manager-8bfad3a2cc1c83e8d0f04f232b0ebe0847fd6bca.tar.gz
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.
-rw-r--r--src/virtManager/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtManager/console.py b/src/virtManager/console.py
index 167401b6..02fe4f1b 100644
--- a/src/virtManager/console.py
+++ b/src/virtManager/console.py
@@ -329,7 +329,7 @@ class VNCViewer(Viewer):
self.console.refresh_scaling()
- self.display.set_keyboard_grab(False)
+ self.display.set_keyboard_grab(True)
self.display.set_pointer_grab(True)
self.display.connect("vnc-pointer-grab", self.console.pointer_grabbed)