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 1348 - No SDL_WINDOWEVENT_MAXIMIZED if clicked while inactive
Summary: No SDL_WINDOWEVENT_MAXIMIZED if clicked while inactive
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Windows (XP)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 11:51 UTC by Vern Jensen
Modified: 2011-12-20 11:58 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 Vern Jensen 2011-12-20 11:51:12 UTC
Normally my Windows SDL app gets "maximized" events just fine. But if it's inactive when the button is clicked, it doesn't get sent any events.

Steps to reproduce: run SDL program, click once on Windows desktop (so program becomes inactive), then click on maximize button in SDL window. The window will maximize, but the SDL program will not receive the event! All it receives is SDL_WINDOWEVENT_FOCUS_GAINED.

The same bug seems to apply to the minimize button as well.

VERSION: SDL-1.3.0-5605
Comment 1 Vern Jensen 2011-12-20 11:58:03 UTC
Just realized I'm flushing all events when getting an "activate" event, which was causing this issue. My bad! Deleting this bug report.