diff --git a/client/X11/xf_monitor.c b/client/X11/xf_monitor.c index 0ed9e44d0..841eb8dcd 100644 --- a/client/X11/xf_monitor.c +++ b/client/X11/xf_monitor.c @@ -4,6 +4,7 @@ * * Copyright 2011 Marc-Andre Moreau * Copyright 2017 David Fort + * Copyright 2018 Kai Harms * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -281,6 +282,11 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight) *pMaxHeight = (xfc->workArea.height * settings->PercentScreen) / 100; } } + else if (settings->DesktopWidth && settings->DesktopHeight) + { + *pMaxWidth = settings->DesktopWidth; + *pMaxHeight = settings->DesktopHeight; + } if (!settings->Fullscreen && !settings->Workarea && !settings->UseMultimon) goto out;