Skip to content

Commit

Permalink
Catch window restore in prefs and flag maximized as false
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 1, 2016
1 parent fbb564d commit b11879a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/preferences.cpp
Expand Up @@ -122,6 +122,11 @@ void prefs_event_handler::handle_event(const SDL_Event& event)
case SDL_WINDOWEVENT_MAXIMIZED:
_set_maximized(true);

break;

case SDL_WINDOWEVENT_RESTORED:
_set_maximized(false);

break;
}
#else
Expand Down

0 comments on commit b11879a

Please sign in to comment.