mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
[client] config: add option to disable auto client resolution switching
This commit is contained in:
parent
c2a19f5e76
commit
9593301511
@ -220,6 +220,14 @@ static struct Option options[] =
|
|||||||
.type = OPTION_TYPE_BOOL,
|
.type = OPTION_TYPE_BOOL,
|
||||||
.value.x_bool = false,
|
.value.x_bool = false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.module = "win",
|
||||||
|
.name = "setGuestRes",
|
||||||
|
.description = "On window size change, request the guest to match"
|
||||||
|
" resoution (if supported by the guest, currently LG IDD only)",
|
||||||
|
.type = OPTION_TYPE_BOOL,
|
||||||
|
.value.x_bool = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.module = "win",
|
.module = "win",
|
||||||
.name = "fpsMin",
|
.name = "fpsMin",
|
||||||
@ -717,6 +725,7 @@ bool config_load(int argc, char * argv[])
|
|||||||
g_params.helpMenuDelayUs = option_get_int("input", "helpMenuDelay") * (uint64_t) 1000;
|
g_params.helpMenuDelayUs = option_get_int("input", "helpMenuDelay") * (uint64_t) 1000;
|
||||||
|
|
||||||
g_params.minimizeOnFocusLoss = option_get_bool("win", "minimizeOnFocusLoss");
|
g_params.minimizeOnFocusLoss = option_get_bool("win", "minimizeOnFocusLoss");
|
||||||
|
g_params.setGuestRes = option_get_bool("win", "setGuestRes" );
|
||||||
|
|
||||||
if ((g_params.useSpice = option_get_bool("spice", "enable")))
|
if ((g_params.useSpice = option_get_bool("spice", "enable")))
|
||||||
{
|
{
|
||||||
|
@ -192,7 +192,7 @@ bool core_warpPointer(int x, int y, bool exiting)
|
|||||||
|
|
||||||
void core_onWindowSizeChanged(unsigned width, unsigned height)
|
void core_onWindowSizeChanged(unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
if (!g_state.pointerQueue)
|
if (!g_params.setGuestRes || !g_state.pointerQueue)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (g_state.srcSize.x == width && g_state.srcSize.y == height)
|
if (g_state.srcSize.x == width && g_state.srcSize.y == height)
|
||||||
|
@ -172,6 +172,7 @@ struct AppParams
|
|||||||
bool center;
|
bool center;
|
||||||
int x, y;
|
int x, y;
|
||||||
unsigned int w, h;
|
unsigned int w, h;
|
||||||
|
bool setGuestRes;
|
||||||
int fpsMin;
|
int fpsMin;
|
||||||
LG_RendererRotate winRotate;
|
LG_RendererRotate winRotate;
|
||||||
bool useSpice;
|
bool useSpice;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user