[Spice-commits] src/spice-widget.c
Victor Toso de Carvalho
victortoso at kemper.freedesktop.org
Thu Jun 18 06:32:08 PDT 2015
src/spice-widget.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 1af5b67bcd474aef2aea02f07db3626a25956b2d
Author: Victor Toso <victortoso at redhat.com>
Date: Thu Jun 18 12:08:51 2015 +0200
spice-widget: keypress-delay set by env var
diff --git a/src/spice-widget.c b/src/spice-widget.c
index 260fda5..59f9792 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -364,7 +364,15 @@ static void spice_display_set_property(GObject *object,
scaling_updated(display);
break;
case PROP_KEYPRESS_DELAY:
- d->keypress_delay = g_value_get_uint(value);
+ {
+ const gchar *env = g_getenv("SPICE_KEYPRESS_DELAY");
+ guint delay = g_value_get_uint(value);
+ if (env != NULL)
+ delay = strtoul(env, NULL, 10);
+
+ SPICE_DEBUG("keypress-delay is set to %u ms", delay);
+ d->keypress_delay = delay;
+ }
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
More information about the Spice-commits
mailing list