virt-manager/virtman-pointer.diff

25 lines
1.3 KiB
Diff

diff -Nuar virt-manager-0.5.3.orig/src/virtManager/console.py virt-manager-0.5.3/src/virtManager/console.py
--- virt-manager-0.5.3.orig/src/virtManager/console.py 2008-01-10 18:17:51.000000000 -0700
+++ virt-manager-0.5.3/src/virtManager/console.py 2008-04-09 11:02:33.000000000 -0600
@@ -78,13 +78,13 @@
self.window.get_widget("console-vnc-align").add(self.vncViewer)
self.vncViewer.realize()
self.vncTunnel = None
- if self.config.get_console_keygrab() == 2:
- self.vncViewer.set_keyboard_grab(True)
- self.vncViewer.set_pointer_grab(True)
- else:
- self.vncViewer.set_keyboard_grab(False)
- self.vncViewer.set_pointer_grab(False)
- self.vncViewer.set_pointer_local(True)
+ # change to always set grab flags as False
+ # setting them to true raises the error of Dom0 screen-saver losing the pointer
+ # if the pointer is over DomU when screen saver activates
+ self.vncViewer.set_keyboard_grab(False)
+ self.vncViewer.set_pointer_grab(False)
+ # comment set_pointer_local to prevent 2 pointers in vnc viewer
+ # self.vncViewer.set_pointer_local(True)
self.vncViewer.connect("vnc-pointer-grab", self.notify_grabbed)
self.vncViewer.connect("vnc-pointer-ungrab", self.notify_ungrabbed)