From 99ed2a3d22d123ad856ec2852ef6f0409d58f58a Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Mon, 4 Sep 2023 02:59:40 -0400 Subject: [PATCH] Bugfix: Fix skipping monitor handle assignation when monitor name was not generic Found the issue why fullscreen was not working --- src/win32_monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 8791f39b..8c308ae2 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -202,11 +202,12 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle, if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0) return TRUE; + monitor->win32.handle = handle; + // If the monitor driver is installed, we will already have an accurate name for the monitor. if (strcmp(monitor->name, "Generic PnP Monitor") != 0) return TRUE; - monitor->win32.handle = handle; accurateMonitorName = tryGetAccurateMonitorName(mi.szDevice); if(accurateMonitorName != NULL) {