https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d1cd80c861eba0bb8c2e6…
commit d1cd80c861eba0bb8c2e665110deae0d7c2bef35
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Apr 30 21:59:44 2022 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sat Apr 30 22:02:28 2022 +0200
[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;
}
}