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

Summary: No SDL_WINDOWEVENT_MAXIMIZED if clicked while inactive
Product: SDL Reporter: Vern Jensen <vern>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows (XP)   

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.