Module: wine Branch: master Commit: 66b593049c62978fbbb607117b78fde35f6db936 URL: https://source.winehq.org/git/wine.git/?a=commit;h=66b593049c62978fbbb607117...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Apr 12 17:55:23 2021 +0200
winemac.drv: Take all online monitors into account when computing desktop rect.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winemac.drv/gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/gdi.c b/dlls/winemac.drv/gdi.c index 8073a875df5..0acddc1dd98 100644 --- a/dlls/winemac.drv/gdi.c +++ b/dlls/winemac.drv/gdi.c @@ -68,7 +68,7 @@ static void compute_desktop_rect(void) uint32_t count, i;
desktop_rect = CGRectNull; - if (CGGetActiveDisplayList(ARRAY_SIZE(displayIDs), displayIDs, &count) != kCGErrorSuccess || + if (CGGetOnlineDisplayList(ARRAY_SIZE(displayIDs), displayIDs, &count) != kCGErrorSuccess || !count) { displayIDs[0] = CGMainDisplayID();