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 1329 - SDL mouse window focus problem after using GetOpenFileName in Windows
Summary: SDL mouse window focus problem after using GetOpenFileName in Windows
Status: RESOLVED ENDOFLIFE
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: x86 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 17:47 UTC by Mervin
Modified: 2015-08-25 09:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mervin 2011-11-11 17:47:09 UTC
I have a SDL window with normal border.
By clicking a specific area in the window I open a file dialog via simple "GetOpenFileName()".
After closing the file dialog with "open" or "cancel" button the SDL window becomes corrupted showing a strange behavior:
When I click inside the client area of the window once, the title bar and close/minimize icons become unresponsive. The window cannot be dragged with the mouse, instead the window gets button events when clicking on the border, which is not normal.
When refocusing, clicking on another window and then back on the title bar of my SDL window, the window border is responsive again until I click in the window's client area.

Here is a compiled test program: http://murkymind.heliohost.org/test/modplay.zip

Someone else described the same problem:
http://www.gamedev.net/topic/587063-sdl-mouse-window-focus-problem-after-using-getsavefilename-in-windows/
Comment 1 Sam Lantinga 2011-12-29 01:52:15 UTC
Thanks for the report.  Have you investigated and have a patch for this issue?
Comment 2 Ryan C. Gordon 2015-08-25 09:38:21 UTC
Hello, and sorry if you're getting several copies of this message by email, since we are closing many bugs at once here.

We have decided to mark all SDL 1.2-related bugs as RESOLVED ENDOFLIFE, as we don't intend to work on SDL 1.2 any further, but didn't want to mark a large quantity of bugs as RESOLVED WONTFIX, to clearly show what was left unattended to and make it easily searchable.

Our current focus is on SDL 2.0.

If you are still having problems with an ENDOFLIFE bug, your absolute best option is to move your program to SDL2, as it will likely fix the problem by default, and give you access to modern platforms and tons of super-cool new features.

Failing that, we _will_ accept small patches to fix these issues, and put them in revision control, although we do not intend to do any further official 1.2 releases.

Failing that, please feel free to contact me directly by email (icculus@icculus.org) and we'll try to find some way to help you out of your situation.

Thank you,
--ryan.