Piotr Caban : winemac.drv: Take all online monitors into account when computing desktop rect.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 16:11:26 CDT 2021


Module: wine
Branch: master
Commit: 66b593049c62978fbbb607117b78fde35f6db936
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=66b593049c62978fbbb607117b78fde35f6db936

Author: Piotr Caban <piotr at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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();




More information about the wine-cvs mailing list