We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5260

Summary: Windows disappear when moving a window to second display in Windows 10
Product: SDL Reporter: Allan Kiipli <allankiipli>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.1   
Hardware: x86   
OS: Windows 10   
Attachments: This is codeblocks in debug mode for multiple windows project.

Description Allan Kiipli 2020-08-16 16:02:30 UTC
Created attachment 4439 [details]
This is codeblocks in debug mode for multiple windows project.

My system has laptop and second monitor connected with hdmi cable.
I use lazy foo examples with Codeblocks.

mingw32-g++.exe -LC:\SDL2-2.0.12\i686-w64-mingw32\lib -LC:\SDL-1.2.15\lib -o bin\Debug\37_multiple_displays.exe obj\Debug\37_multiple_displays.o  -lmingw32 -lSDL2main -lSDL2 -lopengl32 -lglu32 -lgdi32 -mwindows -lglew32mx -lglew32 -lfreetype -lDevIL -lILU -lILUT -lmingw32 -lSDLmain -lSDL -lSDL_image -lsdlgfx -lSDL_mixer -lSDL_ttf -lpthread  
Output file is bin\Debug\37_multiple_displays.exe with size 1.00 MB

Both examples fail same way when i move window to the second display.

https://lazyfoo.net/tutorials/SDL/36_multiple_windows/index.php
https://lazyfoo.net/tutorials/SDL/37_multiple_displays/index.php