[gnome-boxes] vm-configurator: Explicitly assign keyboard
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Explicitly assign keyboard
- Date: Sat, 11 Oct 2014 17:39:54 +0000 (UTC)
commit f425a36d4a459d690b246ec91fafa2e6d21c1d5a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 29 18:46:09 2014 +0100
vm-configurator: Explicitly assign keyboard
This is to ensure that we have a USB keyboard in new domains. We have
received reports of PS/2 keyboard (added by libvirt/qemu by default) being
slower than USB mouse (at least under Windows 8),
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 5ca9c77..fce2937 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -92,6 +92,7 @@ private class Boxes.VMConfigurator {
set_sound_config (domain, install_media);
set_tablet_config (domain, install_media);
set_mouse_config (domain, install_media);
+ set_keyboard_config (domain, install_media);
domain.set_lifecycle (DomainLifecycleEvent.ON_POWEROFF, DomainLifecycleAction.DESTROY);
domain.set_lifecycle (DomainLifecycleEvent.ON_REBOOT, DomainLifecycleAction.DESTROY);
@@ -343,6 +344,10 @@ private class Boxes.VMConfigurator {
set_input_config (domain, DomainInputDeviceType.MOUSE);
}
+ private static void set_keyboard_config (Domain domain, InstallerMedia install_media) {
+ set_input_config (domain, DomainInputDeviceType.KEYBOARD);
+ }
+
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]