[client] add option to capture input on start

This commit is contained in:
Samuel Bowman authored and Geoffrey McRae committed 2020-07-17 08:39:32 +10:00
1 parent ede96fa486
commit bd42445ea7
3 files changed
+17

No files matched your search

+8
View File
@@ -309,6 +309,13 @@ static struct Option options[] =
.type = OPTION_TYPE_BOOL,
.value.x_bool = true
},
{
.module = "spice",
.name = "captureOnStart",
.description = "Capture mouse and keyboard on start",
.type = OPTION_TYPE_BOOL,
.value.x_bool = false
},
{0}
};
@@ -413,6 +420,7 @@ bool config_load(int argc, char * argv[])
}
params.scaleMouseInput = option_get_bool("spice", "scaleCursor");
params.captureOnStart = option_get_bool("spice", "captureOnStart");
}
return true;