[client] clipboard/wayland: implement VM-to-host text copy

Co-authored-by: Quantum <quantum2048@gmail.com>
This commit is contained in:
Tudor Brindus
2021-01-09 00:56:29 -05:00
committed by Geoffrey McRae
parent a205515d91
commit c58f33f5ab
2 changed files with 228 additions and 0 deletions

View File

@@ -2022,6 +2022,10 @@ static int lg_run()
g_state.lgc = LG_Clipboards[0];
}
else if (g_state.wminfo.subsystem == SDL_SYSWM_WAYLAND)
{
g_state.lgc = LG_Clipboards[1];
}
} else {
DEBUG_ERROR("Could not get SDL window information %s", SDL_GetError());
return -1;