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 - Windows disappear when moving a window to second display in Windows 10
Summary: Windows disappear when moving a window to second display in Windows 10
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.1
Hardware: x86 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-16 16:02 UTC by Allan Kiipli
Modified: 2020-08-16 16:02 UTC (History)
0 users

See Also:


Attachments
This is codeblocks in debug mode for multiple windows project. (1.15 MB, image/png)
2020-08-16 16:02 UTC, Allan Kiipli
Details

Note You need to log in before you can comment on or make changes to this bug.
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