virt-manager/virtman-pointer.diff
Charles Arnold 30975c8aa6 Accepting request 32662 from home:computersalat:devel:Virtualization
Copy from home:computersalat:devel:Virtualization/virt-manager via accept of submit request 32662 revision 3.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/32662
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=14
2010-02-16 16:11:41 +00:00

20 lines
1.0 KiB
Diff

Index: virt-manager-0.8.1/src/virtManager/console.py
===================================================================
--- virt-manager-0.8.1.orig/src/virtManager/console.py
+++ virt-manager-0.8.1/src/virtManager/console.py
@@ -205,10 +205,10 @@ class vmmDetails(gobject.GObject):
self.window.get_widget("console-vnc-viewport").add(self.vncViewer)
self.vncViewer.realize()
self.vncTunnel = None
- if self.config.get_console_keygrab() == 2:
- self.vncViewer.set_keyboard_grab(True)
- else:
- self.vncViewer.set_keyboard_grab(False)
+ # Always set grab flags to False. Setting them to True introduces a bug where Dom0 ScreenSaver
+ # loses the pointer if the pointer is over Dom0 when the ScreenSaver activates.
+ # This patch can be removed when testing shows the bug (Gtk?) is fixed.
+ self.vncViewer.set_keyboard_grab(False)
self.vncViewer.set_pointer_grab(True)
self.scale_type = self.vm.get_console_scaling()