[client] spice: own transport configuration
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled

Register SPICE connection and component options in the SPICE transport.
Move generic input and clipboard settings out of the SPICE namespace,
while retaining migration aliases for existing configurations.

Keep PureSpice and usbredir build requirements private to the transport,
and remove obsolete SPICE configuration state from the client core.
This commit is contained in:
Geoffrey McRae
2026-08-11 18:21:53 +10:00
parent 1a6f85eae2
commit 45429681a0
10 changed files with 154 additions and 143 deletions

View File

@@ -339,15 +339,15 @@ bool app_clipboardRequest(LG_ClipboardData type,
return lgClipboard_request(type, replyFn, opaque);
}
static int mapSpiceToImGuiButton(uint32_t button)
static int mapInputToImGuiButton(uint32_t button)
{
switch (button)
{
case 1: // SPICE_MOUSE_BUTTON_LEFT
case 1: // left
return ImGuiMouseButton_Left;
case 2: // SPICE_MOUSE_BUTTON_MIDDLE
case 2: // middle
return ImGuiMouseButton_Middle;
case 3: // SPICE_MOUSE_BUTTON_RIGHT
case 3: // right
return ImGuiMouseButton_Right;
}
@@ -364,7 +364,7 @@ void app_handleButtonPress(int button)
if (app_isOverlayMode())
{
int igButton = mapSpiceToImGuiButton(button);
int igButton = mapInputToImGuiButton(button);
if (igButton != -1)
g_state.io->MouseDown[igButton] = true;
return;
@@ -388,7 +388,7 @@ void app_handleButtonRelease(int button)
if (app_isOverlayMode())
{
int igButton = mapSpiceToImGuiButton(button);
int igButton = mapInputToImGuiButton(button);
if (igButton != -1)
g_state.io->MouseDown[igButton] = false;
return;