summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2019-08-21 11:18:01 -0500
committerFrediano Ziglio <fziglio@redhat.com>2020-03-17 13:56:43 +0000
commitcb122392d2dd99aa0f65a1d2da54894c46c0e2ba (patch)
treeaee096a934238f34a1ff664df059dd216f37d586 /src/options.c
parent104637b3f52531ba927ab9bdbef1c964649b74e7 (diff)
Provide an attempted optimization when damage reports appear wrong.
With compositing window managers like mutter, when used with the spice-video-dummy, you can get damage reports that are the whole screen. Essentially, you just get an indication that the screen has changed, but no sense of what has changed. This change detects that behavior and stops trusting those damage reports, and instead increases the scan frequency to compensate. Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index a6c7b9e..f18c5d5 100644
--- a/src/options.c
+++ b/src/options.c
@@ -381,6 +381,7 @@ static void options_from_config(options_t *options)
string_option(&options->on_disconnect, userkey, systemkey, "spice", "on-disconnect");
options->audit = bool_option(userkey, systemkey, "spice", "audit");
options->audit_message_type = int_option(userkey, systemkey, "spice", "audit-message-type");
+ options->always_trust_damage = bool_option(userkey, systemkey, "spice", "always-trust-damage");
#if defined(HAVE_LIBAUDIT_H)
/* Pick an arbitrary default in the user range. CodeWeavers was founed in 1996, so 1196 it is... */