mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 11:28:11 +00:00
[client] x11: change to a more visible "dot" cursor
This change alters the small square dot cursor to a more visible 16x16 cursor for X11. A new option `spice:largeDotCursor` can be set to use an alternative 32x32 cursor for the vision impaired.
This commit is contained in:
@@ -499,6 +499,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true
|
||||
},
|
||||
{
|
||||
.module = "spice",
|
||||
.name = "largeCursorDot",
|
||||
.description = "Use a larger version of the \"dot\" cursor",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false
|
||||
},
|
||||
|
||||
// audio options
|
||||
{
|
||||
@@ -728,6 +735,7 @@ bool config_load(int argc, char * argv[])
|
||||
g_params.captureOnStart = option_get_bool("spice", "captureOnStart");
|
||||
g_params.alwaysShowCursor = option_get_bool("spice", "alwaysShowCursor");
|
||||
g_params.showCursorDot = option_get_bool("spice", "showCursorDot");
|
||||
g_params.largeCursorDot = option_get_bool("spice", "largeCursorDot");
|
||||
}
|
||||
|
||||
g_params.audioPeriodSize = option_get_int("audio", "periodSize");
|
||||
|
@@ -1337,6 +1337,7 @@ static int lg_run(void)
|
||||
.resizable = g_params.allowResize,
|
||||
.borderless = g_params.borderless,
|
||||
.maximize = g_params.maximize,
|
||||
.largeCursorDot = g_params.largeCursorDot,
|
||||
.opengl = needsOpenGL,
|
||||
.jitRender = g_params.jitRender
|
||||
};
|
||||
|
@@ -218,6 +218,7 @@ struct AppParams
|
||||
bool autoCapture;
|
||||
bool captureInputOnly;
|
||||
bool showCursorDot;
|
||||
bool largeCursorDot;
|
||||
|
||||
int audioPeriodSize;
|
||||
int audioBufferLatency;
|
||||
|
Reference in New Issue
Block a user