Fixed primary monitor index for wayland fullscreen
This commit is contained in:
parent
4ce390e1b9
commit
8b37e7fa11
@ -191,9 +191,9 @@ static BOOL wl_pre_connect(freerdp* instance)
|
||||
if (settings->Fullscreen)
|
||||
{
|
||||
// Use the resolution of the first display output
|
||||
output = UwacDisplayGetOutput(context->display, 1);
|
||||
output = UwacDisplayGetOutput(context->display, 0);
|
||||
|
||||
if (output != NULL && UwacOutputGetResolution(output, &resolution) == UWAC_SUCCESS)
|
||||
if ((output != NULL) && (UwacOutputGetResolution(output, &resolution) == UWAC_SUCCESS))
|
||||
{
|
||||
settings->DesktopWidth = (UINT32)resolution.width;
|
||||
settings->DesktopHeight = (UINT32)resolution.height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user