--- src/spice-widget.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/spice-widget.c b/src/spice-widget.c index 260fda5..30a6636 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 = (guint) g_ascii_strtoull(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); -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel