Fix-Part 2: Unable to control position of first window on Windows with multiple screens (#1432)

This commit is contained in:
ManoloFLTK
2026-05-11 09:57:57 +02:00
parent cbcceb2996
commit e04576171f
@@ -111,7 +111,8 @@ void Fl_WinAPI_Screen_Driver::init()
// we do a run-time check for the required functions...
HMODULE hMod = GetModuleHandle("USER32.DLL");
if (hMod && num_screens < 0) {
if (num_screens >= 0) return;
if (hMod) {
// check that EnumDisplayMonitors is available
fl_edm_func fl_edm = (fl_edm_func)GetProcAddress(hMod, "EnumDisplayMonitors");