From dcc4477e640e08b9f9a0f5b27f9803dfe421e613 Mon Sep 17 00:00:00 2001 From: Zhang Zhaolong Date: Tue, 4 Mar 2014 13:50:31 +0800 Subject: [PATCH] wfreerdp: disable fullscreen toggle in fix size mode. --- client/Windows/wf_interface.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/Windows/wf_interface.c b/client/Windows/wf_interface.c index 6eca6cab9..3ae6dfa81 100644 --- a/client/Windows/wf_interface.c +++ b/client/Windows/wf_interface.c @@ -236,7 +236,8 @@ BOOL wf_pre_connect(freerdp* instance) settings->GlyphSupportLevel = GLYPH_SUPPORT_NONE; wfc->fullscreen = settings->Fullscreen; - wfc->fs_toggle = 1; + if (wfc->fullscreen) + wfc->fs_toggle = 1; wfc->sw_gdi = settings->SoftwareGdi; wfc->clrconv = (HCLRCONV) malloc(sizeof(CLRCONV)); @@ -444,7 +445,8 @@ BOOL wf_post_connect(freerdp* instance) freerdp_channels_post_connect(instance->context->channels, instance); wf_cliprdr_init(wfc, instance->context->channels); - floatbar_window_create(wfc); + if (wfc->fullscreen) + floatbar_window_create(wfc); return TRUE; }