[gnome-boxes] vm-configurator: Explicitly assign mouse
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Explicitly assign mouse
- Date: Sat, 11 Oct 2014 17:39:44 +0000 (UTC)
commit 0db6a10e09488b8516ff71e5a393a7374c791d7d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 29 18:46:09 2014 +0100
vm-configurator: Explicitly assign mouse
This is to ensure that we have a USB mouse in new domains. While we have
not received any reports of PS/2 mouse (added by libvirt/qemu) being
slower than USB mouse, we have had reports about that about PS/2
keyboard vs. USB one. While we are adding USB keyboard, lets add USB
mouse too, just to be sure.
https://bugzilla.gnome.org/show_bug.cgi?id=735768
src/vm-configurator.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 7a530da..5ca9c77 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -91,6 +91,7 @@ private class Boxes.VMConfigurator {
set_video_config (domain, install_media);
set_sound_config (domain, install_media);
set_tablet_config (domain, install_media);
+ set_mouse_config (domain, install_media);
domain.set_lifecycle (DomainLifecycleEvent.ON_POWEROFF, DomainLifecycleAction.DESTROY);
domain.set_lifecycle (DomainLifecycleEvent.ON_REBOOT, DomainLifecycleAction.DESTROY);
@@ -338,6 +339,10 @@ private class Boxes.VMConfigurator {
set_input_config (domain, DomainInputDeviceType.TABLET);
}
+ private static void set_mouse_config (Domain domain, InstallerMedia install_media) {
+ set_input_config (domain, DomainInputDeviceType.MOUSE);
+ }
+
private static void set_input_config (Domain domain, DomainInputDeviceType device_type) {
var input = new DomainInput ();
input.set_device_type (device_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]