Fixed #6712: Use window size from settings
authorakallabeth <akallabeth@posteo.net>
Fri, 12 Feb 2021 13:18:24 +0000 (14:18 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
The xfc->window might be NULL (remote app, ...)

(cherry picked from commit 6ecd440658eee7dbd0a07c1366946046746d0b8d)

client/X11/xf_client.c

index e25567f..f40d9cb 100644 (file)
@@ -299,8 +299,8 @@ static BOOL xf_desktop_resize(rdpContext* context)
                XSetFunction(xfc->display, xfc->gc, GXcopy);
                XSetFillStyle(xfc->display, xfc->gc, FillSolid);
                XSetForeground(xfc->display, xfc->gc, 0);
-               XFillRectangle(xfc->display, xfc->drawable, xfc->gc, 0, 0, xfc->window->width,
-                              xfc->window->height);
+               XFillRectangle(xfc->display, xfc->drawable, xfc->gc, 0, 0, settings->DesktopWidth,
+                              settings->DesktopHeight);
        }
 
        return TRUE;