[client] add input:captureOnly to disable input when not captured

This commit is contained in:
Geoffrey McRae
2021-01-09 18:01:08 +11:00
parent 5e9cfb9033
commit f47c8cb806
4 changed files with 43 additions and 18 deletions

View File

@@ -310,6 +310,13 @@ static struct Option options[] =
.type = OPTION_TYPE_BOOL,
.value.x_bool = false
},
{
.module = "input",
.name = "captureOnly",
.description = "Only enable input via SPICE if in capture mode",
.type = OPTION_TYPE_BOOL,
.value.x_bool = false
},
// spice options
{
@@ -478,6 +485,7 @@ bool config_load(int argc, char * argv[])
params.rawMouse = option_get_bool("input", "rawMouse" );
params.mouseRedraw = option_get_bool("input", "mouseRedraw" );
params.autoCapture = option_get_bool("input", "autoCapture" );
params.captureInputOnly = option_get_bool("input", "captureOnly" );
params.minimizeOnFocusLoss = option_get_bool("win", "minimizeOnFocusLoss");