Fixed primary monitor index for wayland fullscreen
authorakallabeth <akallabeth@posteo.net>
Tue, 5 May 2020 08:31:26 +0000 (10:31 +0200)
committerakallabeth <akallabeth@posteo.net>
Fri, 8 May 2020 09:06:02 +0000 (11:06 +0200)
client/Wayland/wlfreerdp.c

index c7d63c9..5086220 100644 (file)
@@ -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;