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 - Restored minimized maximized window missing SDL_WINDOW_MAXIMIZED flag
Summary: Restored minimized maximized window missing SDL_WINDOW_MAXIMIZED flag
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.5
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 14:36 UTC by Rainer Deyke
Modified: 2017-08-11 19:47 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 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.