Repository: LibreSprite/LibreSprite (language: cpp)

Issue:
SDL2: program doesn't run properly when launching it, opening the process but without trace of it in the app bar
##### LibreSprite version
```
latest dev
```

##### Describe the bug
Title says all

##### To Reproduce
Try to run it through CLI and
```
Unknown windowevent: 1
Unknown windowevent: 2
Minimized
Force Flip
Unknown windowevent: 10
Unknown windowevent: 12
Unknown windowevent: 15
Unknown windowevent: 11
Unknown windowevent: 4
Unknown windowevent: 13
```
no program anywhere. Must Ctrl+C and then re-launch it. These are the decoded events: https://wiki.libsdl.org/SDL_WindowEventID

##### OS/Hardware
- Operative System: Pop!_OS 21.04
- CPU: i7 7700
- GPU: GTX 1060

##### Additional context  
This doesn't happen with Allegro as a backend, hence "SDL2" in the title



Discussion / hints:


I just compiled the latest dev with and it opens and runs for me. What version are you on?

```
$ git rev-parse --short HEAD
4e184e34c
```

Devs should add the git hash in the about screen so it's easier to determine this by the way.

![libresprite](https://user-images.githubusercontent.com/338843/135163257-c50ab06d-5931-4eac-8ad5-cc3b02d455e6.png)
I'm always on the latest commit, and it's a SDL2 issue, as Allegro doesn't give me any issue (I've just tested). I'll update the first message
I assume that as long as I don't use `-DUSE_SDL2_BACKEND=off -DUSE_ALLEG4_BACKEND=on` I'm on SDL2 right? Maybe it's an issue with Pop's version of SDL2? I'm on 2.0.16.

```
$ sdl2-config --version
2.0.16
```
Pop!_OS latest version is `2.0.14`, so I'm on that

Fix patch:
diff --git a/src/she/sdl2/sdl2_display.cpp b/src/she/sdl2/sdl2_display.cpp
index a39397cb1..a7214358e 100644
--- a/src/she/sdl2/sdl2_display.cpp
+++ b/src/she/sdl2/sdl2_display.cpp
@@ -175,7 +175,7 @@ namespace she {
 
   void SDL2Display::maximize()
   {
-    SDL_MinimizeWindow(m_window);
+    SDL_MaximizeWindow(m_window);
   }
 
   bool SDL2Display::isMaximized() const


Test patch: