From fd5f47428bd8f2098a2e430c20b12d4d7eda1998 Mon Sep 17 00:00:00 2001 From: Norbert Federa Date: Thu, 16 Apr 2015 23:54:56 +0200 Subject: [PATCH] xfreerdp: fixed initial smart-sizing dimensions The window width/height variables and in turn SmartSizingWidth/Height get automatically updated in th the configure notify event handler. If the window is created initially the values don't differ from the event values and therefore SmartSizing was not applied until the window was resized. --- client/X11/xf_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index 0799b1cb9..d581ef1f3 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -554,6 +554,9 @@ BOOL xf_create_window(xfContext* xfc) width = settings->SmartSizingWidth; if (settings->SmartSizingHeight) height = settings->SmartSizingHeight; + + xfc->scaledWidth = width; + xfc->scaledHeight = height; } #endif