mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-29 18:16:29 +00:00
[client] spice: new option spice:showCursorDot
added
This option if disabled will prevent the client from showing a "dot" cursor when the mouse is over the window, but the window is unfocused.
This commit is contained in:
parent
4c0c8f804f
commit
9900b263d4
@ -63,6 +63,9 @@ void app_handleFocusEvent(bool focused)
|
||||
for (int key = 0; key < KEY_MAX; key++)
|
||||
if (g_state.keyDown[key])
|
||||
app_handleKeyRelease(key);
|
||||
|
||||
if (!g_params.showCursorDot)
|
||||
g_state.ds->showPointer(false);
|
||||
}
|
||||
|
||||
g_cursor.realign = true;
|
||||
|
@ -421,6 +421,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false
|
||||
},
|
||||
{
|
||||
.module = "app",
|
||||
.name = "showCursorDot",
|
||||
.description = "Use a \"dot\" cursor when the window does not have focus",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true
|
||||
},
|
||||
{0}
|
||||
};
|
||||
|
||||
@ -554,6 +561,7 @@ bool config_load(int argc, char * argv[])
|
||||
g_params.scaleMouseInput = option_get_bool("spice", "scaleCursor");
|
||||
g_params.captureOnStart = option_get_bool("spice", "captureOnStart");
|
||||
g_params.alwaysShowCursor = option_get_bool("spice", "alwaysShowCursor");
|
||||
g_params.showCursorDot = option_get_bool("spice", "showCursorDot");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -151,6 +151,7 @@ struct AppParams
|
||||
bool rawMouse;
|
||||
bool autoCapture;
|
||||
bool captureInputOnly;
|
||||
bool showCursorDot;
|
||||
};
|
||||
|
||||
struct CBRequest
|
||||
|
Loading…
x
Reference in New Issue
Block a user