mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
a96a3245fb
commit
8bfad3a2cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user