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 3592

Summary: Restored minimized maximized window missing SDL_WINDOW_MAXIMIZED flag
Product: SDL Reporter: Rainer Deyke <rainerd>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Linux   

Description Rainer Deyke 2017-02-27 14:36:25 UTC
Simple problem, easy to reproduce:
  - Take a resizable SDL window.
  - Maximize it by pressing the maximize button on the window border.
  - Minimize it by pressing the minimize button on the window border.
  - Restore it to maximized clicking on it on the task bar.
  - The window is now maximized, but is missing the SDL_WINDOW_MAXIMIZED flag.

I'm actually receiving three relevant events when the window is restored:
  - SDL_WINDOWEVENT_RESTORED
  - SDL_WINDOWEVENT_MAXIMIZED
  - SDL_WINDOWEVENT_RESTORED again

Tested under x86_64 Lubuntu 16.04 LTS, LXDE desktop environment, Openbox window manager.  Problem persists in the the latest HG.