From d1cd80c861eba0bb8c2e665110deae0d7c2bef35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 30 Apr 2022 21:59:44 +0200 Subject: [PATCH] [WIN32SS] Set DISPLAY_DEVICE_PRIMARY_DEVICE flag This flag was not set anymore since 2d2824f1b98b772eb36e4e2b75185b48cbeed618 Note that this is still wrong for multi-monitor. CORE-18169 --- win32ss/gdi/eng/pdevobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/gdi/eng/pdevobj.c b/win32ss/gdi/eng/pdevobj.c index 77dce0b0bfa..5ef22da825f 100644 --- a/win32ss/gdi/eng/pdevobj.c +++ b/win32ss/gdi/eng/pdevobj.c @@ -493,7 +493,7 @@ PDEVOBJ_Create( { RtlCopyMemory(ppdev->pdmwDev, pdm, pdm->dmSize + pdm->dmDriverExtra); /* FIXME: this must be done in a better way */ - pGraphicsDevice->StateFlags |= DISPLAY_DEVICE_ATTACHED_TO_DESKTOP; + pGraphicsDevice->StateFlags |= DISPLAY_DEVICE_PRIMARY_DEVICE | DISPLAY_DEVICE_ATTACHED_TO_DESKTOP; } }