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 686 - SDL_SYSWMEVENT messages cannot be handled by an event filter
Summary: SDL_SYSWMEVENT messages cannot be handled by an event filter
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 1.2.13
Hardware: x86 Windows Vista
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
Depends on:
Blocks:
 
Reported: 2009-01-21 20:01 UTC by maf6
Modified: 2009-09-26 23:25 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 maf6 2009-01-21 20:01:36 UTC
I call SDL_SetEventFilter in order to observe and suppress an event. When I see SDL_SYSWMEVENT events, the return value from SDL_PrivateSysWMEvent is ignored and DefWindowProc is called anyway.  I would have expected that returning 0 from my filter would have prevented the windows message from being sent to DefWindowProc.

This happens with both the windibs and directx video drivers.
Comment 1 Ryan C. Gordon 2009-09-13 16:33:21 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 2 Sam Lantinga 2009-09-26 23:25:11 UTC
I'm really hesitant to change this behavior at this point.  It might break programs in completely unexpected ways.